package com.kucai.yifaqapp.ui.fragment.gameFragment;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.InputType;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.bumptech.glide.Glide;
import com.kucai.yifaqapp.R;
import com.kucai.yifaqapp.dagger.component.activity.DaggerSSCFragmentComponent;
import com.kucai.yifaqapp.dagger.module.fragment.SSCFragmentModule;
import com.kucai.yifaqapp.global.Info;
import com.kucai.yifaqapp.model.network.entity.res.ResGameDetails;
import com.kucai.yifaqapp.model.network.entity.res.ResMoney;
import com.kucai.yifaqapp.model.network.entity.res.Reschongqingshishicai;
import com.kucai.yifaqapp.model.network.entity.res.Reskuailefenfencai;
import com.kucai.yifaqapp.model.network.entity.res.Resmiaosushishicai;
import com.kucai.yifaqapp.model.network.entity.res.Resqqfenfencai;
import com.kucai.yifaqapp.model.network.entity.res.Ressanfenssc;
import com.kucai.yifaqapp.model.network.entity.res.Restengxunfenfencai;
import com.kucai.yifaqapp.model.network.entity.res.Resxinjiangshishicai;
import com.kucai.yifaqapp.model.network.entity.res.Viewbean;
import com.kucai.yifaqapp.presenter.fragment.SSCFragmentPresenter;
import com.kucai.yifaqapp.ui.activity.BaseActivity;
import com.kucai.yifaqapp.ui.activity.GameDetailActivityFinal;
import com.kucai.yifaqapp.ui.fragment.BaseFragment;
import com.kucai.yifaqapp.ui.view.SSCFragmentView;
import com.kucai.yifaqapp.util.DateUtils;
import com.kucai.yifaqapp.util.OnItemClickListener;
import com.kucai.yifaqapp.util.SYSOUtils;
import com.kucai.yifaqapp.util.SpUtils;
import com.kucai.yifaqapp.util.TimeTools;
import com.kucai.yifaqapp.widget.KeyBoardWeight;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by Administrator on 2018/12/10.
 */

public class SSCFragment extends BaseFragment<SSCFragmentPresenter> implements SSCFragmentView {
    //时时彩
    int[] img1 = {R.mipmap.ones, R.mipmap.twos, R.mipmap.threes, R.mipmap.fours, R.mipmap.fivs, R.mipmap.sixs, R.mipmap.sevens,
            R.mipmap.eights, R.mipmap.noons, R.mipmap.tens};
    @BindView(R.id.preiod_up_tv)
    TextView preiodUpTv;
    @BindView(R.id.includ1_one)
    ImageView includ1One;
    @BindView(R.id.includ1_two)
    ImageView includ1Two;
    @BindView(R.id.includ1_three)
    ImageView includ1Three;
    @BindView(R.id.includ1_four)
    ImageView includ1Four;
    @BindView(R.id.includ1_five)
    ImageView includ1Five;
    @BindView(R.id.includ1_six)
    ImageView includ1Six;
    @BindView(R.id.includ1_seven)
    ImageView includ1Seven;
    @BindView(R.id.includ1_eight)
    ImageView includ1Eight;
    @BindView(R.id.includ1_noon)
    ImageView includ1Noon;
    @BindView(R.id.includ1_ten)
    ImageView includ1Ten;
    @BindView(R.id.putongiv)
    LinearLayout putongiv;
    @BindView(R.id.ivtext_1)
    TextView ivtext1;
    @BindView(R.id.ivtext_2)
    TextView ivtext2;
    @BindView(R.id.ivtext_3)
    TextView ivtext3;
    @BindView(R.id.ivtext_4)
    TextView ivtext4;
    @BindView(R.id.ivtext_5)
    TextView ivtext5;
    @BindView(R.id.ivtext_6)
    TextView ivtext6;
    @BindView(R.id.includ1_one9s)
    TextView includ1One9s;
    @BindView(R.id.ivtext_7)
    TextView ivtext7;
    @BindView(R.id.ivtext_8)
    TextView ivtext8;
    @BindView(R.id.putongtv)
    LinearLayout putongtv;
    @BindView(R.id.period_down_tv)
    TextView periodDownTv;
    @BindView(R.id.close_time_tv)
    TextView closeTimeTv;
    @BindView(R.id.open_time_tv)
    TextView openTimeTv;
    @BindView(R.id.one)
    TextView one;
    @BindView(R.id.two)
    TextView two;
    @BindView(R.id.three)
    TextView three;
    @BindView(R.id.fore)
    TextView fore;
    @BindView(R.id.fiv)
    TextView fiv;
    @BindView(R.id.putonglayout)
    LinearLayout putonglayout;
    @BindView(R.id.guanyahetitle)
    TextView guanyahetitle;
    @BindView(R.id.guanyada)
    TextView guanyada;
    @BindView(R.id.guanyadas)
    TextView guanyadas;
    @BindView(R.id.guanyadalin)
    LinearLayout guanyadalin;
    @BindView(R.id.guanyaxiao)
    TextView guanyaxiao;
    @BindView(R.id.guanyaxiaos)
    TextView guanyaxiaos;
    @BindView(R.id.guanyaxiaolin)
    LinearLayout guanyaxiaolin;
    @BindView(R.id.guanyadan)
    TextView guanyadan;
    @BindView(R.id.guanyadans)
    TextView guanyadans;
    @BindView(R.id.guanyadanlin)
    LinearLayout guanyadanlin;
    @BindView(R.id.guanyashuang)
    TextView guanyashuang;
    @BindView(R.id.guanyashuangs)
    TextView guanyashuangs;
    @BindView(R.id.guanyashuanglin)
    LinearLayout guanyashuanglin;
    @BindView(R.id.guanyalong)
    TextView guanyalong;
    @BindView(R.id.guanyalongs)
    TextView guanyalongs;
    @BindView(R.id.guanyalonglin)
    LinearLayout guanyalonglin;
    @BindView(R.id.guanyahu)
    TextView guanyahu;
    @BindView(R.id.guanyahus)
    TextView guanyahus;
    @BindView(R.id.guanyahulin)
    LinearLayout guanyahulin;
    @BindView(R.id.guanyahe)
    TextView guanyahe;
    @BindView(R.id.guanyahes)
    TextView guanyahes;
    @BindView(R.id.guanyahelin)
    LinearLayout guanyahelin;
    @BindView(R.id.guanyalonghuhe)
    LinearLayout guanyalonghuhe;
    @BindView(R.id.hongbo)
    TextView hongbo;
    @BindView(R.id.hongbos)
    TextView hongbos;
    @BindView(R.id.hongbolin)
    LinearLayout hongbolin;
    @BindView(R.id.lvbo)
    TextView lvbo;
    @BindView(R.id.lvbos)
    TextView lvbos;
    @BindView(R.id.lvbolin)
    LinearLayout lvbolin;
    @BindView(R.id.lanbo)
    TextView lanbo;
    @BindView(R.id.lanbos)
    TextView lanbos;
    @BindView(R.id.lanbolin)
    LinearLayout lanbolin;
    @BindView(R.id.hunhe_lin)
    LinearLayout hunheLin;
    @BindView(R.id.includ_guanyahe_item)
    LinearLayout includGuanyaheItem;
    @BindView(R.id.guanjuntitle)
    TextView guanjuntitle;
    @BindView(R.id.guanjun_dan)
    TextView guanjunDan;
    @BindView(R.id.guanjun_dans)
    TextView guanjunDans;
    @BindView(R.id.guanjun_danlin)
    LinearLayout guanjunDanlin;
    @BindView(R.id.guanjun_shuang)
    TextView guanjunShuang;
    @BindView(R.id.guanjun_shuangs)
    TextView guanjunShuangs;
    @BindView(R.id.guanjun_shuanglin)
    LinearLayout guanjunShuanglin;
    @BindView(R.id.guanjun_da)
    TextView guanjunDa;
    @BindView(R.id.guanjun_das)
    TextView guanjunDas;
    @BindView(R.id.guanjun_dalin)
    LinearLayout guanjunDalin;
    @BindView(R.id.guanjun_xiao)
    TextView guanjunXiao;
    @BindView(R.id.guanjun_xiaos)
    TextView guanjunXiaos;
    @BindView(R.id.guanjun_xiaolin)
    LinearLayout guanjunXiaolin;
    @BindView(R.id.guanjun_long)
    TextView guanjunLong;
    @BindView(R.id.guanjun_longs)
    TextView guanjunLongs;
    @BindView(R.id.guanjunlonglin)
    LinearLayout guanjunlonglin;
    @BindView(R.id.guanjun_hu)
    TextView guanjunHu;
    @BindView(R.id.guanjun_hus)
    TextView guanjunHus;
    @BindView(R.id.guanjun_hulin)
    LinearLayout guanjunHulin;
    @BindView(R.id.yajuntitle)
    TextView yajuntitle;
    @BindView(R.id.yajun_dan)
    TextView yajunDan;
    @BindView(R.id.yajun_dan1)
    TextView yajunDan1;
    @BindView(R.id.uajundanlin)
    LinearLayout uajundanlin;
    @BindView(R.id.yajun_da)
    TextView yajunDa;
    @BindView(R.id.yajun_das)
    TextView yajunDas;
    @BindView(R.id.yajun_dalin)
    LinearLayout yajunDalin;
    @BindView(R.id.yajun_long)
    TextView yajunLong;
    @BindView(R.id.yajun_longs)
    TextView yajunLongs;
    @BindView(R.id.yajun_longlin)
    LinearLayout yajunLonglin;
    @BindView(R.id.yajun_shuang)
    TextView yajunShuang;
    @BindView(R.id.yajun_shuangs)
    TextView yajunShuangs;
    @BindView(R.id.yajun_shuanglin)
    LinearLayout yajunShuanglin;
    @BindView(R.id.yajun_xiao)
    TextView yajunXiao;
    @BindView(R.id.yajun_xiaos)
    TextView yajunXiaos;
    @BindView(R.id.yajun_xiaolin)
    LinearLayout yajunXiaolin;
    @BindView(R.id.yajun_hu)
    TextView yajunHu;
    @BindView(R.id.yajun_hus)
    TextView yajunHus;
    @BindView(R.id.yajun_hulin)
    LinearLayout yajunHulin;
    @BindView(R.id.disanmingtitle)
    TextView disanmingtitle;
    @BindView(R.id.disanming_dan)
    TextView disanmingDan;
    @BindView(R.id.disanming_dans)
    TextView disanmingDans;
    @BindView(R.id.disanming_danlin)
    LinearLayout disanmingDanlin;
    @BindView(R.id.disanming_da)
    TextView disanmingDa;
    @BindView(R.id.disanming_das)
    TextView disanmingDas;
    @BindView(R.id.disanming_dalin)
    LinearLayout disanmingDalin;
    @BindView(R.id.disanming_long)
    TextView disanmingLong;
    @BindView(R.id.disanming_longs)
    TextView disanmingLongs;
    @BindView(R.id.disanming_longlin)
    LinearLayout disanmingLonglin;
    @BindView(R.id.disanming_shuang)
    TextView disanmingShuang;
    @BindView(R.id.disanming_shuangs)
    TextView disanmingShuangs;
    @BindView(R.id.disanming_shuanglin)
    LinearLayout disanmingShuanglin;
    @BindView(R.id.disanming_xiao)
    TextView disanmingXiao;
    @BindView(R.id.disanming_xiao1)
    TextView disanmingXiao1;
    @BindView(R.id.disanming_xiaolin)
    LinearLayout disanmingXiaolin;
    @BindView(R.id.disanming_hu)
    TextView disanmingHu;
    @BindView(R.id.disanming_hus)
    TextView disanmingHus;
    @BindView(R.id.disanming_hulin)
    LinearLayout disanmingHulin;
    @BindView(R.id.disimingtitle)
    TextView disimingtitle;
    @BindView(R.id.disiming_dan)
    TextView disimingDan;
    @BindView(R.id.disiming_dans)
    TextView disimingDans;
    @BindView(R.id.disiming_danlin)
    LinearLayout disimingDanlin;
    @BindView(R.id.disiming_da)
    TextView disimingDa;
    @BindView(R.id.disiming_das)
    TextView disimingDas;
    @BindView(R.id.disimingdalin)
    LinearLayout disimingdalin;
    @BindView(R.id.disiming_long)
    TextView disimingLong;
    @BindView(R.id.disiming_longs)
    TextView disimingLongs;
    @BindView(R.id.disiming_longlin)
    LinearLayout disimingLonglin;
    @BindView(R.id.disiming_shuang)
    TextView disimingShuang;
    @BindView(R.id.disiming_shuangs)
    TextView disimingShuangs;
    @BindView(R.id.disiming_shuanglin)
    LinearLayout disimingShuanglin;
    @BindView(R.id.disiming_xiao)
    TextView disimingXiao;
    @BindView(R.id.disiming_xiaos)
    TextView disimingXiaos;
    @BindView(R.id.disiming_xiaolin)
    LinearLayout disimingXiaolin;
    @BindView(R.id.disiming_hu)
    TextView disimingHu;
    @BindView(R.id.disiming_hus)
    TextView disimingHus;
    @BindView(R.id.disiming_hulin)
    LinearLayout disimingHulin;
    @BindView(R.id.diwumingtitil)
    TextView diwumingtitil;
    @BindView(R.id.diwuming_dan)
    TextView diwumingDan;
    @BindView(R.id.diwuming_dans)
    TextView diwumingDans;
    @BindView(R.id.diwuming_danlin)
    LinearLayout diwumingDanlin;
    @BindView(R.id.diwuming_da)
    TextView diwumingDa;
    @BindView(R.id.diwuming_das)
    TextView diwumingDas;
    @BindView(R.id.diwuming_dalin)
    LinearLayout diwumingDalin;
    @BindView(R.id.diwuming_long)
    TextView diwumingLong;
    @BindView(R.id.diwuming_longs)
    TextView diwumingLongs;
    @BindView(R.id.diwuming_longlin)
    LinearLayout diwumingLonglin;
    @BindView(R.id.diwuming_shuang)
    TextView diwumingShuang;
    @BindView(R.id.diwuming_shuangs)
    TextView diwumingShuangs;
    @BindView(R.id.diwuming_shuanglin)
    LinearLayout diwumingShuanglin;
    @BindView(R.id.diwuming_xiao)
    TextView diwumingXiao;
    @BindView(R.id.diwuming_xiaos)
    TextView diwumingXiaos;
    @BindView(R.id.diwuming_xiaolin)
    LinearLayout diwumingXiaolin;
    @BindView(R.id.diwuming_hu)
    TextView diwumingHu;
    @BindView(R.id.diwuming_hus)
    TextView diwumingHus;
    @BindView(R.id.diwuming_hulin)
    LinearLayout diwumingHulin;
    @BindView(R.id.qianwuming)
    LinearLayout qianwuming;
    @BindView(R.id.diliumingtitle)
    TextView diliumingtitle;
    @BindView(R.id.diliuming_dan)
    TextView diliumingDan;
    @BindView(R.id.diliuming_dans)
    TextView diliumingDans;
    @BindView(R.id.diliuming_danlin)
    LinearLayout diliumingDanlin;
    @BindView(R.id.diliuming_da)
    TextView diliumingDa;
    @BindView(R.id.diliuming_das)
    TextView diliumingDas;
    @BindView(R.id.diliumingdalin)
    LinearLayout diliumingdalin;
    @BindView(R.id.diliuming_shuang)
    TextView diliumingShuang;
    @BindView(R.id.diliuming_shuangs)
    TextView diliumingShuangs;
    @BindView(R.id.diliuming_shuanglin)
    LinearLayout diliumingShuanglin;
    @BindView(R.id.diliuming_xiao)
    TextView diliumingXiao;
    @BindView(R.id.diliuming_xiaos)
    TextView diliumingXiaos;
    @BindView(R.id.diliuming_xiaolin)
    LinearLayout diliumingXiaolin;
    @BindView(R.id.diqimingtitle)
    TextView diqimingtitle;
    @BindView(R.id.diqiming_dan)
    TextView diqimingDan;
    @BindView(R.id.diqiming_dans)
    TextView diqimingDans;
    @BindView(R.id.diqiming_danlin)
    LinearLayout diqimingDanlin;
    @BindView(R.id.diqiming_da)
    TextView diqimingDa;
    @BindView(R.id.diqiming_das)
    TextView diqimingDas;
    @BindView(R.id.diqiming_dalin)
    LinearLayout diqimingDalin;
    @BindView(R.id.diqiming_shuang)
    TextView diqimingShuang;
    @BindView(R.id.diqiming_shuangs)
    TextView diqimingShuangs;
    @BindView(R.id.diqiming_shuanglin)
    LinearLayout diqimingShuanglin;
    @BindView(R.id.diqiming_xiao)
    TextView diqimingXiao;
    @BindView(R.id.diqiming_xiaos)
    TextView diqimingXiaos;
    @BindView(R.id.diqiming_xiaolin)
    LinearLayout diqimingXiaolin;
    @BindView(R.id.dibamingtitle)
    TextView dibamingtitle;
    @BindView(R.id.dibaming_dan)
    TextView dibamingDan;
    @BindView(R.id.dibaming_dans)
    TextView dibamingDans;
    @BindView(R.id.dibaming_danlin)
    LinearLayout dibamingDanlin;
    @BindView(R.id.dibaming_da)
    TextView dibamingDa;
    @BindView(R.id.dibaming_das)
    TextView dibamingDas;
    @BindView(R.id.dibaming_dalin)
    LinearLayout dibamingDalin;
    @BindView(R.id.dibaming_shuang)
    TextView dibamingShuang;
    @BindView(R.id.dibaming_shuangs)
    TextView dibamingShuangs;
    @BindView(R.id.dibaming_shuanglin)
    LinearLayout dibamingShuanglin;
    @BindView(R.id.dibaming_xiao)
    TextView dibamingXiao;
    @BindView(R.id.dibaming_xiaos)
    TextView dibamingXiaos;
    @BindView(R.id.dibaming_xiaolin)
    LinearLayout dibamingXiaolin;
    @BindView(R.id.dijiumingtitle)
    TextView dijiumingtitle;
    @BindView(R.id.dijiuming_dan)
    TextView dijiumingDan;
    @BindView(R.id.dijiuming_dans)
    TextView dijiumingDans;
    @BindView(R.id.dijiuming_danlin)
    LinearLayout dijiumingDanlin;
    @BindView(R.id.dijiuming_da)
    TextView dijiumingDa;
    @BindView(R.id.dijiuming_das)
    TextView dijiumingDas;
    @BindView(R.id.dijiuming_dalin)
    LinearLayout dijiumingDalin;
    @BindView(R.id.dijiuming_shuang)
    TextView dijiumingShuang;
    @BindView(R.id.dijiuming_shuangs)
    TextView dijiumingShuangs;
    @BindView(R.id.dijiuming_shuanglin)
    LinearLayout dijiumingShuanglin;
    @BindView(R.id.dijiuming_xiao)
    TextView dijiumingXiao;
    @BindView(R.id.dijiuming_xiaos)
    TextView dijiumingXiaos;
    @BindView(R.id.dijiuming_xiaolin)
    LinearLayout dijiumingXiaolin;
    @BindView(R.id.dishimingtitle)
    TextView dishimingtitle;
    @BindView(R.id.dishiming_dan)
    TextView dishimingDan;
    @BindView(R.id.dishiming_dans)
    TextView dishimingDans;
    @BindView(R.id.dishiming_danlin)
    LinearLayout dishimingDanlin;
    @BindView(R.id.dishiming_da)
    TextView dishimingDa;
    @BindView(R.id.dishiming_das)
    TextView dishimingDas;
    @BindView(R.id.dishiming_dalin)
    LinearLayout dishimingDalin;
    @BindView(R.id.dishiming_shuang)
    TextView dishimingShuang;
    @BindView(R.id.dishiming_shuangs)
    TextView dishimingShuangs;
    @BindView(R.id.dishiming_shuanglin)
    LinearLayout dishimingShuanglin;
    @BindView(R.id.dishiming_xiao)
    TextView dishimingXiao;
    @BindView(R.id.dishiming_xiaos)
    TextView dishimingXiaos;
    @BindView(R.id.dishiming_xiaolin)
    LinearLayout dishimingXiaolin;
    @BindView(R.id.includ1)
    LinearLayout includ1;
    @BindView(R.id.guanyahe_3)
    TextView guanyahe3;
    @BindView(R.id.guanyahe_3s)
    TextView guanyahe3s;
    @BindView(R.id.guanyahe_3lin)
    LinearLayout guanyahe3lin;
    @BindView(R.id.guanyahe_4)
    TextView guanyahe4;
    @BindView(R.id.guanyahe_4s)
    TextView guanyahe4s;
    @BindView(R.id.guanyahe_4lin)
    LinearLayout guanyahe4lin;
    @BindView(R.id.guanyahe_5)
    TextView guanyahe5;
    @BindView(R.id.guanyahe_5s)
    TextView guanyahe5s;
    @BindView(R.id.guanyahe_5lin)
    LinearLayout guanyahe5lin;
    @BindView(R.id.guanyahe_6)
    TextView guanyahe6;
    @BindView(R.id.guanyahe_6s)
    TextView guanyahe6s;
    @BindView(R.id.guanyahe_6lin)
    LinearLayout guanyahe6lin;
    @BindView(R.id.guanyahe_7)
    TextView guanyahe7;
    @BindView(R.id.guanyahe_7s)
    TextView guanyahe7s;
    @BindView(R.id.guanyahe_7lin)
    LinearLayout guanyahe7lin;
    @BindView(R.id.guanyahe_8)
    TextView guanyahe8;
    @BindView(R.id.guanyahe_8s)
    TextView guanyahe8s;
    @BindView(R.id.guanyahe_8lin)
    LinearLayout guanyahe8lin;
    @BindView(R.id.guanyahe_9)
    TextView guanyahe9;
    @BindView(R.id.guanyahe_9s)
    TextView guanyahe9s;
    @BindView(R.id.guanyahe_9lin)
    LinearLayout guanyahe9lin;
    @BindView(R.id.guanyahe_10)
    TextView guanyahe10;
    @BindView(R.id.guanyahe_10s)
    TextView guanyahe10s;
    @BindView(R.id.guanyahe_10lin)
    LinearLayout guanyahe10lin;
    @BindView(R.id.guanyahe_11)
    TextView guanyahe11;
    @BindView(R.id.guanyahe_11s)
    TextView guanyahe11s;
    @BindView(R.id.guanyahe_11lin)
    LinearLayout guanyahe11lin;
    @BindView(R.id.guanyahe_12)
    TextView guanyahe12;
    @BindView(R.id.guanyahe_12s)
    TextView guanyahe12s;
    @BindView(R.id.guanyahe_12lin)
    LinearLayout guanyahe12lin;
    @BindView(R.id.guanyahe_13)
    TextView guanyahe13;
    @BindView(R.id.guanyahe_13s)
    TextView guanyahe13s;
    @BindView(R.id.guanyahe_13lin)
    LinearLayout guanyahe13lin;
    @BindView(R.id.guanyahe_14)
    TextView guanyahe14;
    @BindView(R.id.guanyahe_14s)
    TextView guanyahe14s;
    @BindView(R.id.guanyahe_14lin)
    LinearLayout guanyahe14lin;
    @BindView(R.id.guanyahe_15)
    TextView guanyahe15;
    @BindView(R.id.guanyahe_15s)
    TextView guanyahe15s;
    @BindView(R.id.guanyahe_15lin)
    LinearLayout guanyahe15lin;
    @BindView(R.id.guanyahe_16)
    TextView guanyahe16;
    @BindView(R.id.guanyahe_16s)
    TextView guanyahe16s;
    @BindView(R.id.guanyahe_16lin)
    LinearLayout guanyahe16lin;
    @BindView(R.id.guanyahe_17)
    TextView guanyahe17;
    @BindView(R.id.guanyahe_17s)
    TextView guanyahe17s;
    @BindView(R.id.guanyahe_17lin)
    LinearLayout guanyahe17lin;
    @BindView(R.id.guanyahe_18)
    TextView guanyahe18;
    @BindView(R.id.guanyahe_18s)
    TextView guanyahe18s;
    @BindView(R.id.guanyahe_18lin)
    LinearLayout guanyahe18lin;
    @BindView(R.id.guanyahe_19)
    TextView guanyahe19;
    @BindView(R.id.guanyahe_19s)
    TextView guanyahe19s;
    @BindView(R.id.guanyahe_19lin)
    LinearLayout guanyahe19lin;
    @BindView(R.id.includ2)
    LinearLayout includ2;
    @BindView(R.id.includ3_guanjuntittle)
    TextView includ3Guanjuntittle;
    @BindView(R.id.guanjuniv1)
    ImageView guanjuniv1;
    @BindView(R.id.guanjuntv1)
    TextView guanjuntv1;
    @BindView(R.id.guanjunivlin1)
    LinearLayout guanjunivlin1;
    @BindView(R.id.guanjuniv2)
    ImageView guanjuniv2;
    @BindView(R.id.guanjuntv2)
    TextView guanjuntv2;
    @BindView(R.id.guanjunivlin2)
    LinearLayout guanjunivlin2;
    @BindView(R.id.guanjuniv3)
    ImageView guanjuniv3;
    @BindView(R.id.guanjuntv3)
    TextView guanjuntv3;
    @BindView(R.id.guanjunivlin3)
    LinearLayout guanjunivlin3;
    @BindView(R.id.guanjuniv4)
    ImageView guanjuniv4;
    @BindView(R.id.guanjuntv4)
    TextView guanjuntv4;
    @BindView(R.id.guanjunivlin4)
    LinearLayout guanjunivlin4;
    @BindView(R.id.guanjuniv5)
    ImageView guanjuniv5;
    @BindView(R.id.guanjuntv5)
    TextView guanjuntv5;
    @BindView(R.id.guanjunivlin5)
    LinearLayout guanjunivlin5;
    @BindView(R.id.guanjuniv6)
    ImageView guanjuniv6;
    @BindView(R.id.guanjuntv6)
    TextView guanjuntv6;
    @BindView(R.id.guanjunivlin6)
    LinearLayout guanjunivlin6;
    @BindView(R.id.guanjuniv7)
    ImageView guanjuniv7;
    @BindView(R.id.guanjuntv7)
    TextView guanjuntv7;
    @BindView(R.id.guanjunivlin7)
    LinearLayout guanjunivlin7;
    @BindView(R.id.guanjuniv8)
    ImageView guanjuniv8;
    @BindView(R.id.guanjuntv8)
    TextView guanjuntv8;
    @BindView(R.id.guanjunivlin8)
    LinearLayout guanjunivlin8;
    @BindView(R.id.guanjuniv9)
    ImageView guanjuniv9;
    @BindView(R.id.guanjuntv9)
    TextView guanjuntv9;
    @BindView(R.id.guanjunivlin9)
    LinearLayout guanjunivlin9;
    @BindView(R.id.guanjuniv10)
    ImageView guanjuniv10;
    @BindView(R.id.guanjuntv10)
    TextView guanjuntv10;
    @BindView(R.id.guanjunivlin10)
    LinearLayout guanjunivlin10;
    @BindView(R.id.includ3_yajuntittle)
    TextView includ3Yajuntittle;
    @BindView(R.id.yajuniv1)
    ImageView yajuniv1;
    @BindView(R.id.yajuntv1)
    TextView yajuntv1;
    @BindView(R.id.yajunivlin1)
    LinearLayout yajunivlin1;
    @BindView(R.id.yajuniv2)
    ImageView yajuniv2;
    @BindView(R.id.yajuntv2)
    TextView yajuntv2;
    @BindView(R.id.yajunivlin2)
    LinearLayout yajunivlin2;
    @BindView(R.id.yajuniv3)
    ImageView yajuniv3;
    @BindView(R.id.yajuntv3)
    TextView yajuntv3;
    @BindView(R.id.yajunivlin3)
    LinearLayout yajunivlin3;
    @BindView(R.id.yajuniv4)
    ImageView yajuniv4;
    @BindView(R.id.yajuntv4)
    TextView yajuntv4;
    @BindView(R.id.yajunivlin4)
    LinearLayout yajunivlin4;
    @BindView(R.id.yajuniv5)
    ImageView yajuniv5;
    @BindView(R.id.yajuntv5)
    TextView yajuntv5;
    @BindView(R.id.yajunivlin5)
    LinearLayout yajunivlin5;
    @BindView(R.id.yajuniv6)
    ImageView yajuniv6;
    @BindView(R.id.yajuntv6)
    TextView yajuntv6;
    @BindView(R.id.yajunivlin6)
    LinearLayout yajunivlin6;
    @BindView(R.id.yajuniv7)
    ImageView yajuniv7;
    @BindView(R.id.yajuntv7)
    TextView yajuntv7;
    @BindView(R.id.yajunivlin7)
    LinearLayout yajunivlin7;
    @BindView(R.id.yajuniv8)
    ImageView yajuniv8;
    @BindView(R.id.yajuntv8)
    TextView yajuntv8;
    @BindView(R.id.yajunivlin8)
    LinearLayout yajunivlin8;
    @BindView(R.id.yajuniv9)
    ImageView yajuniv9;
    @BindView(R.id.yajuntv9)
    TextView yajuntv9;
    @BindView(R.id.yajunivlin9)
    LinearLayout yajunivlin9;
    @BindView(R.id.yajuniv10)
    ImageView yajuniv10;
    @BindView(R.id.yajuntv10)
    TextView yajuntv10;
    @BindView(R.id.yajunivlin10)
    LinearLayout yajunivlin10;
    @BindView(R.id.includ3_disanmingtittle)
    TextView includ3Disanmingtittle;
    @BindView(R.id.disanmingiv1)
    ImageView disanmingiv1;
    @BindView(R.id.disanmingtv1)
    TextView disanmingtv1;
    @BindView(R.id.disanmingivlin1)
    LinearLayout disanmingivlin1;
    @BindView(R.id.disanmingiv2)
    ImageView disanmingiv2;
    @BindView(R.id.disanmingtv2)
    TextView disanmingtv2;
    @BindView(R.id.disanmingivlin2)
    LinearLayout disanmingivlin2;
    @BindView(R.id.disanmingiv3)
    ImageView disanmingiv3;
    @BindView(R.id.disanmingtv3)
    TextView disanmingtv3;
    @BindView(R.id.disanmingivlin3)
    LinearLayout disanmingivlin3;
    @BindView(R.id.disanmingiv4)
    ImageView disanmingiv4;
    @BindView(R.id.disanmingtv4)
    TextView disanmingtv4;
    @BindView(R.id.disanmingivlin4)
    LinearLayout disanmingivlin4;
    @BindView(R.id.disanmingiv5)
    ImageView disanmingiv5;
    @BindView(R.id.disanmingtv5)
    TextView disanmingtv5;
    @BindView(R.id.disanmingivlin5)
    LinearLayout disanmingivlin5;
    @BindView(R.id.disanmingiv6)
    ImageView disanmingiv6;
    @BindView(R.id.disanmingtv6)
    TextView disanmingtv6;
    @BindView(R.id.disanmingivlin6)
    LinearLayout disanmingivlin6;
    @BindView(R.id.disanmingiv7)
    ImageView disanmingiv7;
    @BindView(R.id.disanmingtv7)
    TextView disanmingtv7;
    @BindView(R.id.disanmingivlin7)
    LinearLayout disanmingivlin7;
    @BindView(R.id.disanmingiv8)
    ImageView disanmingiv8;
    @BindView(R.id.disanmingtv8)
    TextView disanmingtv8;
    @BindView(R.id.disanmingivlin8)
    LinearLayout disanmingivlin8;
    @BindView(R.id.disanmingiv9)
    ImageView disanmingiv9;
    @BindView(R.id.disanmingtv9)
    TextView disanmingtv9;
    @BindView(R.id.disanmingivlin9)
    LinearLayout disanmingivlin9;
    @BindView(R.id.disanmingiv10)
    ImageView disanmingiv10;
    @BindView(R.id.disanmingtv10)
    TextView disanmingtv10;
    @BindView(R.id.disanmingivlin10)
    LinearLayout disanmingivlin10;
    @BindView(R.id.includ3_disimingtittle)
    TextView includ3Disimingtittle;
    @BindView(R.id.disimingiv1)
    ImageView disimingiv1;
    @BindView(R.id.disimingtv1)
    TextView disimingtv1;
    @BindView(R.id.disimingivlin1)
    LinearLayout disimingivlin1;
    @BindView(R.id.disimingiv2)
    ImageView disimingiv2;
    @BindView(R.id.disimingtv2)
    TextView disimingtv2;
    @BindView(R.id.disimingivlin2)
    LinearLayout disimingivlin2;
    @BindView(R.id.disimingiv3)
    ImageView disimingiv3;
    @BindView(R.id.disimingtv3)
    TextView disimingtv3;
    @BindView(R.id.disimingivlin3)
    LinearLayout disimingivlin3;
    @BindView(R.id.disimingiv4)
    ImageView disimingiv4;
    @BindView(R.id.disimingtv4)
    TextView disimingtv4;
    @BindView(R.id.disimingivlin4)
    LinearLayout disimingivlin4;
    @BindView(R.id.disimingiv5)
    ImageView disimingiv5;
    @BindView(R.id.disimingtv5)
    TextView disimingtv5;
    @BindView(R.id.disimingivlin5)
    LinearLayout disimingivlin5;
    @BindView(R.id.disimingiv6)
    ImageView disimingiv6;
    @BindView(R.id.disimingtv6)
    TextView disimingtv6;
    @BindView(R.id.disimingivlin6)
    LinearLayout disimingivlin6;
    @BindView(R.id.disimingiv7)
    ImageView disimingiv7;
    @BindView(R.id.disimingtv7)
    TextView disimingtv7;
    @BindView(R.id.disimingivlin7)
    LinearLayout disimingivlin7;
    @BindView(R.id.disimingiv8)
    ImageView disimingiv8;
    @BindView(R.id.disimingtv8)
    TextView disimingtv8;
    @BindView(R.id.disimingivlin8)
    LinearLayout disimingivlin8;
    @BindView(R.id.disimingiv9)
    ImageView disimingiv9;
    @BindView(R.id.disimingtv9)
    TextView disimingtv9;
    @BindView(R.id.disimingivlin9)
    LinearLayout disimingivlin9;
    @BindView(R.id.disimingiv10)
    ImageView disimingiv10;
    @BindView(R.id.disimingtv10)
    TextView disimingtv10;
    @BindView(R.id.disimingivlin10)
    LinearLayout disimingivlin10;
    @BindView(R.id.includ3_diwumingtittle)
    TextView includ3Diwumingtittle;
    @BindView(R.id.diwumingiv1)
    ImageView diwumingiv1;
    @BindView(R.id.diwumingtv1)
    TextView diwumingtv1;
    @BindView(R.id.diwumingivlin1)
    LinearLayout diwumingivlin1;
    @BindView(R.id.diwumingiv2)
    ImageView diwumingiv2;
    @BindView(R.id.diwumingtv2)
    TextView diwumingtv2;
    @BindView(R.id.diwumingivlin2)
    LinearLayout diwumingivlin2;
    @BindView(R.id.diwumingiv3)
    ImageView diwumingiv3;
    @BindView(R.id.diwumingtv3)
    TextView diwumingtv3;
    @BindView(R.id.diwumingivlin3)
    LinearLayout diwumingivlin3;
    @BindView(R.id.diwumingiv4)
    ImageView diwumingiv4;
    @BindView(R.id.diwumingtv4)
    TextView diwumingtv4;
    @BindView(R.id.diwumingivlin4)
    LinearLayout diwumingivlin4;
    @BindView(R.id.diwumingiv5)
    ImageView diwumingiv5;
    @BindView(R.id.diwumingtv5)
    TextView diwumingtv5;
    @BindView(R.id.diwumingivlin5)
    LinearLayout diwumingivlin5;
    @BindView(R.id.diwumingiv6)
    ImageView diwumingiv6;
    @BindView(R.id.diwumingtv6)
    TextView diwumingtv6;
    @BindView(R.id.diwumingivlin6)
    LinearLayout diwumingivlin6;
    @BindView(R.id.diwumingiv7)
    ImageView diwumingiv7;
    @BindView(R.id.diwumingtv7)
    TextView diwumingtv7;
    @BindView(R.id.diwumingivlin7)
    LinearLayout diwumingivlin7;
    @BindView(R.id.diwumingiv8)
    ImageView diwumingiv8;
    @BindView(R.id.diwumingtv8)
    TextView diwumingtv8;
    @BindView(R.id.diwumingivlin8)
    LinearLayout diwumingivlin8;
    @BindView(R.id.diwumingiv9)
    ImageView diwumingiv9;
    @BindView(R.id.diwumingtv9)
    TextView diwumingtv9;
    @BindView(R.id.diwumingivlin9)
    LinearLayout diwumingivlin9;
    @BindView(R.id.diwumingiv10)
    ImageView diwumingiv10;
    @BindView(R.id.diwumingtv10)
    TextView diwumingtv10;
    @BindView(R.id.diwumingivlin10)
    LinearLayout diwumingivlin10;
    @BindView(R.id.textviewid1)
    TextView textviewid1;
    @BindView(R.id.textviewid2)
    TextView textviewid2;
    @BindView(R.id.textviewid3)
    TextView textviewid3;
    @BindView(R.id.textviewid4)
    TextView textviewid4;
    @BindView(R.id.textviewid5)
    TextView textviewid5;
    @BindView(R.id.textviewid6)
    TextView textviewid6;
    @BindView(R.id.textviewid7)
    TextView textviewid7;
    @BindView(R.id.textviewid8)
    TextView textviewid8;
    @BindView(R.id.textviewid9)
    TextView textviewid9;
    @BindView(R.id.textviewid10)
    TextView textviewid10;
    @BindView(R.id.includ3)
    LinearLayout includ3;
    @BindView(R.id.qiansan_title)
    TextView qiansanTitle;
    @BindView(R.id.qiansan_baozi)
    TextView qiansanBaozi;
    @BindView(R.id.qiansan_baozis)
    TextView qiansanBaozis;
    @BindView(R.id.qiansan_baozilin)
    LinearLayout qiansanBaozilin;
    @BindView(R.id.qiansan_shunzi)
    TextView qiansanShunzi;
    @BindView(R.id.qiansan_shunzis)
    TextView qiansanShunzis;
    @BindView(R.id.qiansan_shunzilin)
    LinearLayout qiansanShunzilin;
    @BindView(R.id.qiansan_duizi)
    TextView qiansanDuizi;
    @BindView(R.id.qiansan_duizis)
    TextView qiansanDuizis;
    @BindView(R.id.qiansan_duizilin)
    LinearLayout qiansanDuizilin;
    @BindView(R.id.qiansan_banshun)
    TextView qiansanBanshun;
    @BindView(R.id.qiansan_banshuns)
    TextView qiansanBanshuns;
    @BindView(R.id.qiansanbanshunlin)
    LinearLayout qiansanbanshunlin;
    @BindView(R.id.qiansan_zaliu)
    TextView qiansanZaliu;
    @BindView(R.id.qiansan_zalius)
    TextView qiansanZalius;
    @BindView(R.id.qiansan_zaliulin)
    LinearLayout qiansanZaliulin;
    @BindView(R.id.zhongsan_title)
    TextView zhongsanTitle;
    @BindView(R.id.zhongsan_baozi)
    TextView zhongsanBaozi;
    @BindView(R.id.zhongsan_baozis)
    TextView zhongsanBaozis;
    @BindView(R.id.zhongsanbaozilin)
    LinearLayout zhongsanbaozilin;
    @BindView(R.id.zhongsan_shunzi)
    TextView zhongsanShunzi;
    @BindView(R.id.zhongsan_shunzis)
    TextView zhongsanShunzis;
    @BindView(R.id.zhongsanshunzilin)
    LinearLayout zhongsanshunzilin;
    @BindView(R.id.zhongsan_duizi)
    TextView zhongsanDuizi;
    @BindView(R.id.zhongsan_duizis)
    TextView zhongsanDuizis;
    @BindView(R.id.zhongsanduizilin)
    LinearLayout zhongsanduizilin;
    @BindView(R.id.zhongsan_banshun)
    TextView zhongsanBanshun;
    @BindView(R.id.zhongsan_banshuns)
    TextView zhongsanBanshuns;
    @BindView(R.id.zhongsanbanshunlin)
    LinearLayout zhongsanbanshunlin;
    @BindView(R.id.zhongsan_zaliu)
    TextView zhongsanZaliu;
    @BindView(R.id.zhongsan_zalius)
    TextView zhongsanZalius;
    @BindView(R.id.zhongsan_zaliulin)
    LinearLayout zhongsanZaliulin;
    @BindView(R.id.housan_title)
    TextView housanTitle;
    @BindView(R.id.housan_baozi)
    TextView housanBaozi;
    @BindView(R.id.housan_baozis)
    TextView housanBaozis;
    @BindView(R.id.housanbaozilin)
    LinearLayout housanbaozilin;
    @BindView(R.id.housan_shunzi)
    TextView housanShunzi;
    @BindView(R.id.housan_shunzis)
    TextView housanShunzis;
    @BindView(R.id.housanshunzi)
    LinearLayout housanshunzi;
    @BindView(R.id.housan_duizi)
    TextView housanDuizi;
    @BindView(R.id.housan_duizis)
    TextView housanDuizis;
    @BindView(R.id.housanduizilin)
    LinearLayout housanduizilin;
    @BindView(R.id.housan_banshun)
    TextView housanBanshun;
    @BindView(R.id.housan_banshuns)
    TextView housanBanshuns;
    @BindView(R.id.housanbanshunlin)
    LinearLayout housanbanshunlin;
    @BindView(R.id.housan_zaliu)
    TextView housanZaliu;
    @BindView(R.id.housan_zalius)
    TextView housanZalius;
    @BindView(R.id.housan_zaliulin)
    LinearLayout housanZaliulin;
    @BindView(R.id.includqiangzhonghou)
    LinearLayout includqiangzhonghou;
    @BindView(R.id.saicheRl)
    RelativeLayout saicheRl;
    @BindView(R.id.yixuanzhong)
    TextView yixuanzhong;
    @BindView(R.id.touzhued)
    EditText touzhued;
    @BindView(R.id.xiazhubt)
    Button xiazhubt;
    @BindView(R.id.chongzhibt)
    Button chongzhibt;
    @BindView(R.id.xiazhulin)
    LinearLayout xiazhulin;
    @BindView(R.id.fengpanlin)
    TextView fengpanlin;
    @BindView(R.id.qianzhonghou)
    TextView qianzhonghou;
    @BindView(R.id.keybord)
    KeyBoardWeight keybord;
    @BindView(R.id.guanyada1)
    TextView guanyada1;
    @BindView(R.id.guanyadas1)
    TextView guanyadas1;
    @BindView(R.id.guanyadalin1)
    LinearLayout guanyadalin1;
    @BindView(R.id.guanyaxiao1)
    TextView guanyaxiao1;
    @BindView(R.id.guanyaxiaos1)
    TextView guanyaxiaos1;
    @BindView(R.id.guanyaxiaolin1)
    LinearLayout guanyaxiaolin1;
    @BindView(R.id.guanyadan1)
    TextView guanyadan1;
    @BindView(R.id.guanyadans1)
    TextView guanyadans1;
    @BindView(R.id.guanyadanlin1)
    LinearLayout guanyadanlin1;
    @BindView(R.id.guanyashuang1)
    TextView guanyashuang1;
    @BindView(R.id.guanyashuangs1)
    TextView guanyashuangs1;
    @BindView(R.id.guanyashuanglin1)
    LinearLayout guanyashuanglin1;
    @BindView(R.id.name0)
    TextView name0;
    @BindView(R.id.name1)
    TextView name1;
    @BindView(R.id.name2)
    TextView name2;
    @BindView(R.id.name3)
    TextView name3;
    @BindView(R.id.name4)
    TextView name4;
    @BindView(R.id.name5)
    TextView name5;
    @BindView(R.id.name6)
    TextView name6;
    @BindView(R.id.name7)
    TextView name7;
    @BindView(R.id.name8)
    TextView name8;
    @BindView(R.id.name9)
    TextView name9;
    @BindView(R.id.ssctitle)
    LinearLayout ssctitle;
    private String gameid;//游戏id
    private String money;//金额
    private String dataid;//期数
    //    private String webvideo;//开奖地址
    private TextView tvmoney;
    private AlertDialog dialog;
    private String betBean_title1[];
    private String betBean_text1[];
    private String betBean_odds1[];
    private String betBean_money1[];
    ArrayList<String> thecrownIndex = new ArrayList<>();//选中的集合
    ArrayList<Viewbean> linearLayoutsList = new ArrayList<>();//选中的线性布局
    private Adapter adapter;

    private boolean flag = true;

    @Override
    protected void ChangeSkin() {

    }

    @Override
    protected int setContentView() {
        return R.layout.sscfragment;
    }

    @Override
    protected void initDagger() {
        DaggerSSCFragmentComponent.builder()
                .sSCFragmentModule(new SSCFragmentModule(this))
                .build().inject(this);
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        guanyada.setText("总和大");
        guanyaxiao.setText("总和小");
        guanyadan.setText("总和单");
        guanyashuang.setText("总和双");
        if (closeTimeTv.getText().toString().trim().equals("已封盘")) {
            fengpanlin.setVisibility(View.VISIBLE);
            xiazhubt.setEnabled(false);
            chongzhibt.setEnabled(false);
            touzhued.setEnabled(false);
        }
        shishicaitupianziyuan();
        one.setTextColor(getContext().getResources().getColor(R.color.settingbg));
        includ1Six.setVisibility(View.GONE);
        includ1Seven.setVisibility(View.GONE);
        includ1Eight.setVisibility(View.GONE);
        includ1Noon.setVisibility(View.GONE);
        includ1Ten.setVisibility(View.GONE);
        ivtext5.setVisibility(View.GONE);
        ivtext6.setVisibility(View.GONE);
        ivtext7.setVisibility(View.GONE);
        ivtext8.setVisibility(View.GONE);
        two.setVisibility(View.GONE);
        fore.setVisibility(View.GONE);
        qianzhonghou.setVisibility(View.VISIBLE);
        three.setText("1-5球");


        //输入框处理
//        getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);

        touzhued.setInputType(InputType.TYPE_NULL);
        keybord.init(touzhued, new KeyBoardWeight.Goback() {
            @Override
            public void goback() {
                keybord.setVisibility(View.GONE);
            }
        });
        touzhued.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                keybord.setVisibility(View.VISIBLE);
            }
        });
        touzhued.addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {

            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
                if (touzhued.getText().toString().matches("^0")) {//判断当前的输入第一个数是不是为0
                    touzhued.setText("");
                }
            }

            @Override
            public void afterTextChanged(Editable s) {
//                SYSOUtils.sOut_("wwwwwwwwwwwwwwwwwwwwww" + s);
            }
        });
        xiazhubt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                closeKeyBoard();
                String edmoney = touzhued.getText().toString().trim();
                if (TextUtils.isEmpty(edmoney)) {
                    Toast.makeText(getContext(), "请输入投注金额", Toast.LENGTH_SHORT).show();
                } else {

                    long Total_price = Long.parseLong(edmoney) * thecrownIndex.size();
                    String[] betBean_Play = new String[thecrownIndex.size()];
                    String[] betBean_odds = new String[thecrownIndex.size()];
                    String[] betBean_money = new String[thecrownIndex.size()];
                    String[] betBean_title = new String[thecrownIndex.size()];
                    String[] betBean_text = new String[thecrownIndex.size()];
                    if (thecrownIndex.size() != 0 && null != thecrownIndex) {
                        for (int i = 0; i < thecrownIndex.size(); i++) {
//                            SYSOUtils.sOut_("当前集合为" + linearLayoutsList.get(Integer.parseInt(thecrownIndex.get(i))));
                            betBean_Play[i] = linearLayoutsList.get(Integer.parseInt(thecrownIndex.get(i))).id;
                            betBean_money[i] = edmoney;
                            betBean_odds[i] = linearLayoutsList.get(Integer.parseInt(thecrownIndex.get(i))).textViews.getText().toString();
                            betBean_title[i] = linearLayoutsList.get(Integer.parseInt(thecrownIndex.get(i))).str;
                            if (null != linearLayoutsList.get(Integer.parseInt(thecrownIndex.get(i))).textView) {
                                betBean_text[i] = linearLayoutsList.get(Integer.parseInt(thecrownIndex.get(i))).textView.getText().toString();
                            }


                        }
                        betBean_title1 = betBean_title;
                        betBean_text1 = betBean_text;
                        betBean_odds1 = betBean_odds;
                        betBean_money1 = betBean_money;
                    } else {
                        Toast.makeText(getContext(), "您还没有下注", Toast.LENGTH_SHORT).show();
                    }


                    try {
                        if (!TextUtils.isEmpty(gameid) && !TextUtils.isEmpty(dataid) && thecrownIndex.size() != 0 && Total_price != 0) {

                            final JSONObject result = new JSONObject();
                            result.put("gameId", gameid);
                            result.put("turnNum", dataid);
                            result.put("totalNums", thecrownIndex.size() + "");
                            result.put("totalMoney", Total_price + "");
                            for (int i = 0; i < betBean_Play.length; i++) {
                                result.put("betBean_playId[" + i + "]", betBean_Play[i]);
                                result.put("betBean_odds[" + i + "]", betBean_odds[i]);
                                result.put("betBean_money[" + i + "]", betBean_money[i]);
                            }
                            SYSOUtils.sOut_("数据" + result);
//                            SYSOUtils.sOut_("游戏id" + gameid + "期数" + dataid + "总株数" + thecrownIndex.size() + "下注总金额" + Total_price);
//                            SYSOUtils.sOut_("每一注id" + betBean_Play[0] + "每一住赔率" + betBean_odds[0] + "没注金额" + betBean_money[0]);
//                            SYSOUtils.sOut_("最终json1" + result.toString());

                            AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
                            View view = View.inflate(getContext(), R.layout.gamepop_layout, null);
                            RecyclerView game_pop_list = (RecyclerView) view.findViewById(R.id.game_pop_list);
                            TextView game_pop_canclbt = (TextView) view.findViewById(R.id.game_pop_canclbt);
                            TextView game_pop_yesbt = (TextView) view.findViewById(R.id.game_pop_yesbt);
                            game_pop_list.setLayoutManager(new LinearLayoutManager(getContext()));
                            //创建适配器
                            adapter = new Adapter();
                            game_pop_list.setAdapter(adapter);
                            builder.setView(view);
                            dialog = builder.create();
                            dialog.setCancelable(true);//点击外边缘隐藏
                            dialog.show();
                            game_pop_canclbt.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View v) {
                                    dialog.dismiss();
                                }
                            });
                            game_pop_yesbt.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View v) {
                                    dialog.dismiss();
                                    SYSOUtils.sOut_(result.toString());
                                    mPresenter.Betbet(result.toString(), Info.user.token);
                                }
                            });

                        } else {
                            Toast.makeText(getContext(), "请选择正确投注内容", Toast.LENGTH_SHORT).show();
                        }
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }
                }

            }
        });
        //获取游戏id
        final FragmentActivity activity = getActivity();
        if (activity != null)

        {
            final GameDetailActivityFinal gameDetailsActivity = (GameDetailActivityFinal) activity;
            gameid = gameDetailsActivity.gameid;
            money = gameDetailsActivity.money;
            tvmoney = gameDetailsActivity.moneyTv;
//            webvideo = gameDetailsActivity.webvideo;
        }


        if (null != gameid) {

            //头部
            mPresenter.getgamesdetail(gameid);
            //头部布局处理
            one.setTextColor(getContext().getResources().getColor(R.color.settingbg));
            //赔率设置
            switch (Integer.parseInt(gameid)) {
                case 81:
                    //秒速时时彩
                    mPresenter.getmiaosushishicaioddes(gameid, Info.user.token);
                    break;
                case 1:
                    //重庆时时彩
                    mPresenter.getchongqingshishicaioddes(gameid, Info.user.token);
                    break;
                case 4:
                    //新疆时时彩
                    mPresenter.getxinjiangshishicaioddes(gameid, Info.user.token);
                    break;
                case 112:
                    //腾讯分分彩
                    mPresenter.gettengxunfenfencaioddes(gameid, Info.user.token);
                    break;
                case 113:
                    //qq分分彩
                    mPresenter.getqqfenfencaioddes(gameid, Info.user.token);
                    break;
                case 803:
                    //快乐分分彩
                    mPresenter.getkuailefenfencaioddes(gameid, Info.user.token);
                    break;
                case 902:
                    //快乐分分彩
                    mPresenter.getsanfenssc(gameid, Info.user.token);
                    break;
                default:
                    break;
            }
        }
    }

    //时时彩头部
    public void Lottery(ResGameDetails resGameDetails) {
        GameDetailActivityFinal.webvideo = resGameDetails.data.videoUrl;
        preiodUpTv.setText(resGameDetails.data.preIssue + "期");
        periodDownTv.setText(resGameDetails.data.issue + "期");
        String[] strarray = resGameDetails.data.preNum.split(",");
        dataid = String.valueOf(resGameDetails.data.issue);
        startleftTime(resGameDetails.data.endTime, resGameDetails.data.serverTime);
        startrightTime(resGameDetails.data.lotteryTime, resGameDetails.data.serverTime, 1);
        if (Integer.parseInt(strarray[0]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[0]) - 1]).into(includ1One);
        } else {
            Glide.with(this).load(img1[9]).into(includ1One);
        }
        if (Integer.parseInt(strarray[1]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[1]) - 1]).into(includ1Two);
        } else {
            Glide.with(this).load(img1[9]).into(includ1Two);
        }
        if (Integer.parseInt(strarray[2]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[2]) - 1]).into(includ1Three);
        } else {
            Glide.with(this).load(img1[9]).into(includ1Three);
        }
        if (Integer.parseInt(strarray[3]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[3]) - 1]).into(includ1Four);
        } else {
            Glide.with(this).load(img1[9]).into(includ1Four);
        }
        if (Integer.parseInt(strarray[4]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[4]) - 1]).into(includ1Five);
        } else {
            Glide.with(this).load(img1[9]).into(includ1Five);
        }
        ivtext1.setText(Integer.parseInt(strarray[0]) + Integer.parseInt(strarray[1]) +
                Integer.parseInt(strarray[2]) + Integer.parseInt(strarray[3]) + Integer.parseInt(strarray[4]) + ""); // 1
        int a2 = Integer.parseInt(strarray[0]) + Integer.parseInt(strarray[1])
                + (Integer.parseInt(strarray[2]) + Integer.parseInt(strarray[3]) + Integer.parseInt(strarray[4]));
        if (a2 >= 23) {
            ivtext2.setText("大");
        } else {
            ivtext2.setText("小");
        }
        if (a2 % 2 == 0) {
            ivtext3.setText("双");
        } else {
            ivtext3.setText("单");

        }
        if (Integer.parseInt(strarray[0]) > Integer.parseInt(strarray[4])) {
            ivtext4.setText("龙");
        } else if (Integer.parseInt(strarray[0]) < Integer.parseInt(strarray[4])) {
            ivtext4.setText("虎");
        } else {
            ivtext4.setText("和");
        }
        if (!TextUtils.isEmpty(resGameDetails.data.issue.toString()) && !TextUtils.isEmpty(resGameDetails.data.preIssue.toString())) {
            long b = Long.parseLong(resGameDetails.data.issue.toString()) - Long.parseLong(resGameDetails.data.preIssue.toString());
            if (b != 1 && b < 3) {
                mPresenter.getgamesdetail1(gameid);
                return;
            }
        }
        //请求余额刷新
        if (null != Info.user) {
            mPresenter.getmoney(Info.user.token);
        }
    }


    //时时彩头部
    public void Lottery1(ResGameDetails resGameDetails) {
        ssctitle.setVisibility(View.VISIBLE);
        GameDetailActivityFinal.webvideo = resGameDetails.data.videoUrl;
        preiodUpTv.setText(resGameDetails.data.preIssue + "期");
        periodDownTv.setText(resGameDetails.data.issue + "期");
        if (!TextUtils.isEmpty(resGameDetails.data.issue.toString()) && !TextUtils.isEmpty(resGameDetails.data.preIssue.toString())) {
            long b = Long.parseLong(resGameDetails.data.issue.toString()) - Long.parseLong(resGameDetails.data.preIssue.toString());
            if (b != 1 && b < 3) {
                if (timer1 != null) {
                    timer1.cancel();
                    timer1 = null;
                }
                if (timer2 != null) {
                    timer2.cancel();
                    timer2 = null;
                }
                mPresenter.getgamesdetail(gameid);
                return;
            }
        }
        String[] strarray = resGameDetails.data.preNum.split(",");
        dataid = (String) resGameDetails.data.issue;
        if (Integer.parseInt(strarray[0]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[0]) - 1]).into(includ1One);
        } else {
            Glide.with(this).load(img1[9]).into(includ1One);
        }
        if (Integer.parseInt(strarray[1]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[1]) - 1]).into(includ1Two);
        } else {
            Glide.with(this).load(img1[9]).into(includ1Two);
        }
        if (Integer.parseInt(strarray[2]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[2]) - 1]).into(includ1Three);
        } else {
            Glide.with(this).load(img1[9]).into(includ1Three);
        }
        if (Integer.parseInt(strarray[3]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[3]) - 1]).into(includ1Four);
        } else {
            Glide.with(this).load(img1[9]).into(includ1Four);
        }
        if (Integer.parseInt(strarray[4]) != 0) {
            Glide.with(this).load(img1[Integer.parseInt(strarray[4]) - 1]).into(includ1Five);
        } else {
            Glide.with(this).load(img1[9]).into(includ1Five);
        }

        ivtext1.setText(Integer.parseInt(strarray[0]) + Integer.parseInt(strarray[1]) +
                Integer.parseInt(strarray[2]) + Integer.parseInt(strarray[3]) + Integer.parseInt(strarray[4]) + ""); // 1
        int a = Integer.parseInt(strarray[0]) + Integer.parseInt(strarray[1]);
        if (a > 11) {
            ivtext2.setText("大");
        } else {
            ivtext2.setText("小");
        }
        if (a % 2 == 1) {
            ivtext3.setText("双");
        } else {
            ivtext3.setText("单");

        }
        ivtext4.setText(Integer.parseInt(strarray[0]) > Integer.parseInt(strarray[4]) ? "龙" : "虎"); // 4
        //请求余额刷新
        if (null != Info.user) {
            mPresenter.getmoney(Info.user.token);
        }
    }

    /**
     * 新疆时时彩
     */
    public void setdataxinjiangshishicai(Resxinjiangshishicai.DataBean listdata) {
        guanyalonghuhe.setVisibility(View.VISIBLE);
        guanyahetitle.setText("总和、龙虎");
        guanyadas.setText(listdata._$494248);
        guanyaxiaos.setText(listdata._$494249);
        guanyadans.setText(listdata._$494250);
        guanyashuangs.setText(listdata._$494251);
        linearLayoutsList.add(new Viewbean(guanyadalin, guanyada, guanyadas, "总和、龙虎", "494248"));
        linearLayoutsList.add(new Viewbean(guanyaxiaolin, guanyaxiao, guanyaxiaos, "总和、龙虎", "494249"));
        linearLayoutsList.add(new Viewbean(guanyadanlin, guanyadan, guanyadans, "总和、龙虎", "494250"));
        linearLayoutsList.add(new Viewbean(guanyashuanglin, guanyashuang, guanyashuangs, "总和、龙虎", "494251"));

        guanyalongs.setText(listdata._$494252);
        guanyahus.setText(listdata._$494253);
        guanyahes.setText(listdata._$494254);
        linearLayoutsList.add(new Viewbean(guanyalonglin, guanyalong, guanyalongs, "总和、龙虎", "494252"));
        linearLayoutsList.add(new Viewbean(guanyahulin, guanyahu, guanyahus, "总和、龙虎", "494253"));
        linearLayoutsList.add(new Viewbean(guanyahelin, guanyahe, guanyahes, "总和、龙虎", "494254"));

        //第一球
        diliumingDas.setText(listdata._$495265);
        diliumingXiaos.setText(listdata._$495266);
        diliumingDans.setText(listdata._$495267);
        diliumingShuangs.setText(listdata._$495268);
        linearLayoutsList.add(new Viewbean(diliumingdalin, diliumingDa, diliumingDas, "第一球", "495265"));
        linearLayoutsList.add(new Viewbean(diliumingXiaolin, diliumingXiao, diliumingXiaos, "第一球", "495266"));
        linearLayoutsList.add(new Viewbean(diliumingDanlin, diliumingDan, diliumingDans, "第一球", "495267"));
        linearLayoutsList.add(new Viewbean(diliumingShuanglin, diliumingShuang, diliumingShuangs, "第一球", "495268"));

        //第二球
        diqimingDas.setText(listdata._$496279);
        diqimingXiaos.setText(listdata._$496280);
        diqimingDans.setText(listdata._$496281);
        diqimingShuangs.setText(listdata._$496282);
        linearLayoutsList.add(new Viewbean(diqimingDalin, diqimingDa, diqimingDas, "第二球", "496279"));
        linearLayoutsList.add(new Viewbean(diqimingXiaolin, diqimingXiao, diqimingXiaos, "第二球", "496280"));
        linearLayoutsList.add(new Viewbean(diqimingDanlin, diqimingDan, diqimingDans, "第二球", "496281"));
        linearLayoutsList.add(new Viewbean(diqimingShuanglin, diqimingShuang, diqimingShuangs, "第二球", "496282"));

        //第三球
        dibamingDas.setText(listdata._$497293);
        dibamingXiaos.setText(listdata._$497294);
        dibamingDans.setText(listdata._$497295);
        dibamingShuangs.setText(listdata._$497296);
        linearLayoutsList.add(new Viewbean(dibamingDalin, dibamingDa, dibamingDas, "第三球", "497293"));
        linearLayoutsList.add(new Viewbean(dibamingXiaolin, dibamingXiao, dibamingXiaos, "第三球", "497294"));
        linearLayoutsList.add(new Viewbean(dibamingDanlin, dibamingDan, dibamingDans, "第三球", "497295"));
        linearLayoutsList.add(new Viewbean(dibamingShuanglin, dibamingShuang, dibamingShuangs, "第三球", "497296"));

        //第四球
        dijiumingDas.setText(listdata._$498307);
        dijiumingXiaos.setText(listdata._$498308);
        dijiumingDans.setText(listdata._$498309);
        dijiumingShuangs.setText(listdata._$498310);
        linearLayoutsList.add(new Viewbean(dijiumingDalin, dijiumingDa, dijiumingDas, "第四球", "498307"));
        linearLayoutsList.add(new Viewbean(dijiumingXiaolin, dijiumingXiao, dijiumingXiaos, "第四球", "498308"));
        linearLayoutsList.add(new Viewbean(dijiumingDanlin, dijiumingDan, dijiumingDans, "第四球", "498309"));
        linearLayoutsList.add(new Viewbean(dijiumingShuanglin, dijiumingShuang, dijiumingShuangs, "第四球", "498310"));


        //第五球
        dishimingDas.setText(listdata._$499321);
        dishimingXiaos.setText(listdata._$499322);
        dishimingDans.setText(listdata._$499323);
        dishimingShuangs.setText(listdata._$499324);
        linearLayoutsList.add(new Viewbean(dishimingDalin, dishimingDa, dishimingDas, "第五球", "499321"));
        linearLayoutsList.add(new Viewbean(dishimingXiaolin, dishimingXiao, dishimingXiaos, "第五球", "499322"));
        linearLayoutsList.add(new Viewbean(dishimingDanlin, dishimingDan, dishimingDans, "第五球", "499323"));
        linearLayoutsList.add(new Viewbean(dishimingShuanglin, dishimingShuang, dishimingShuangs, "第五球", "499324"));

        //图文
        guanjuntv1.setText(listdata._$495255);
        guanjuntv2.setText(listdata._$495256);
        guanjuntv3.setText(listdata._$495257);
        guanjuntv4.setText(listdata._$495258);
        guanjuntv5.setText(listdata._$495259);
        guanjuntv6.setText(listdata._$495260);
        guanjuntv7.setText(listdata._$495261);
        guanjuntv8.setText(listdata._$495262);
        guanjuntv9.setText(listdata._$495263);
        guanjuntv10.setText(listdata._$495264);
        linearLayoutsList.add(new Viewbean(guanjunivlin1, name0, guanjuntv1, "第一球", "495255"));
        linearLayoutsList.add(new Viewbean(guanjunivlin2, name1, guanjuntv2, "第一球", "495256"));
        linearLayoutsList.add(new Viewbean(guanjunivlin3, name2, guanjuntv3, "第一球", "495257"));
        linearLayoutsList.add(new Viewbean(guanjunivlin4, name3, guanjuntv4, "第一球", "495258"));
        linearLayoutsList.add(new Viewbean(guanjunivlin5, name4, guanjuntv5, "第一球", "495259"));
        linearLayoutsList.add(new Viewbean(guanjunivlin6, name5, guanjuntv6, "第一球", "495260"));
        linearLayoutsList.add(new Viewbean(guanjunivlin7, name6, guanjuntv7, "第一球", "495261"));
        linearLayoutsList.add(new Viewbean(guanjunivlin8, name7, guanjuntv8, "第一球", "495262"));
        linearLayoutsList.add(new Viewbean(guanjunivlin9, name8, guanjuntv9, "第一球", "495263"));
        linearLayoutsList.add(new Viewbean(guanjunivlin10, name9, guanjuntv10, "第一球", "495264"));

        yajuntv1.setText(listdata._$496269);
        yajuntv2.setText(listdata._$496270);
        yajuntv3.setText(listdata._$496271);
        yajuntv4.setText(listdata._$496272);
        yajuntv5.setText(listdata._$496273);
        yajuntv6.setText(listdata._$496274);
        yajuntv7.setText(listdata._$496275);
        yajuntv8.setText(listdata._$496276);
        yajuntv9.setText(listdata._$496277);
        yajuntv10.setText(listdata._$496278);
        linearLayoutsList.add(new Viewbean(yajunivlin1, name0, yajuntv1, "第二球", "496269"));
        linearLayoutsList.add(new Viewbean(yajunivlin2, name1, yajuntv2, "第二球", "496270"));
        linearLayoutsList.add(new Viewbean(yajunivlin3, name2, yajuntv3, "第二球", "496271"));
        linearLayoutsList.add(new Viewbean(yajunivlin4, name3, yajuntv4, "第二球", "496272"));
        linearLayoutsList.add(new Viewbean(yajunivlin5, name4, yajuntv5, "第二球", "496273"));
        linearLayoutsList.add(new Viewbean(yajunivlin6, name5, yajuntv6, "第二球", "496274"));
        linearLayoutsList.add(new Viewbean(yajunivlin7, name6, yajuntv7, "第二球", "496275"));
        linearLayoutsList.add(new Viewbean(yajunivlin8, name7, yajuntv8, "第二球", "496276"));
        linearLayoutsList.add(new Viewbean(yajunivlin9, name8, yajuntv9, "第二球", "496277"));
        linearLayoutsList.add(new Viewbean(yajunivlin10, name9, yajuntv10, "第二球", "496278"));

        disanmingtv1.setText(listdata._$497283);
        disanmingtv2.setText(listdata._$497284);
        disanmingtv3.setText(listdata._$497285);
        disanmingtv4.setText(listdata._$497286);
        disanmingtv5.setText(listdata._$497287);
        disanmingtv6.setText(listdata._$497288);
        disanmingtv7.setText(listdata._$497289);
        disanmingtv8.setText(listdata._$497290);
        disanmingtv9.setText(listdata._$497291);
        disanmingtv10.setText(listdata._$497292);
        linearLayoutsList.add(new Viewbean(disanmingivlin1, name0, disanmingtv1, "第三球", "497283"));
        linearLayoutsList.add(new Viewbean(disanmingivlin2, name1, disanmingtv2, "第三球", "497284"));
        linearLayoutsList.add(new Viewbean(disanmingivlin3, name2, disanmingtv3, "第三球", "497285"));
        linearLayoutsList.add(new Viewbean(disanmingivlin4, name3, disanmingtv4, "第三球", "497286"));
        linearLayoutsList.add(new Viewbean(disanmingivlin5, name4, disanmingtv5, "第三球", "497287"));
        linearLayoutsList.add(new Viewbean(disanmingivlin6, name5, disanmingtv6, "第三球", "497288"));
        linearLayoutsList.add(new Viewbean(disanmingivlin7, name6, disanmingtv7, "第三球", "497289"));
        linearLayoutsList.add(new Viewbean(disanmingivlin8, name7, disanmingtv8, "第三球", "497290"));
        linearLayoutsList.add(new Viewbean(disanmingivlin9, name8, disanmingtv9, "第三球", "497291"));
        linearLayoutsList.add(new Viewbean(disanmingivlin10, name9, disanmingtv10, "第三球", "497292"));

        disimingtv1.setText(listdata._$498297);
        disimingtv2.setText(listdata._$498298);
        disimingtv3.setText(listdata._$498299);
        disimingtv4.setText(listdata._$498300);
        disimingtv5.setText(listdata._$498301);
        disimingtv6.setText(listdata._$498302);
        disimingtv7.setText(listdata._$498303);
        disimingtv8.setText(listdata._$498304);
        disimingtv9.setText(listdata._$498305);
        disimingtv10.setText(listdata._$498306);
        linearLayoutsList.add(new Viewbean(disimingivlin1, name0, disimingtv1, "第四球", "498297"));
        linearLayoutsList.add(new Viewbean(disimingivlin2, name1, disimingtv2, "第四球", "498298"));
        linearLayoutsList.add(new Viewbean(disimingivlin3, name2, disimingtv3, "第四球", "498299"));
        linearLayoutsList.add(new Viewbean(disimingivlin4, name3, disimingtv4, "第四球", "498300"));
        linearLayoutsList.add(new Viewbean(disimingivlin5, name4, disimingtv5, "第四球", "498301"));
        linearLayoutsList.add(new Viewbean(disimingivlin6, name5, disimingtv6, "第四球", "498302"));
        linearLayoutsList.add(new Viewbean(disimingivlin7, name6, disimingtv7, "第四球", "498303"));
        linearLayoutsList.add(new Viewbean(disimingivlin8, name7, disimingtv8, "第四球", "498304"));
        linearLayoutsList.add(new Viewbean(disimingivlin9, name8, disimingtv9, "第四球", "498305"));
        linearLayoutsList.add(new Viewbean(disimingivlin10, name9, disimingtv10, "第四球", "498306"));

        diwumingtv1.setText(listdata._$499311);
        diwumingtv2.setText(listdata._$499312);
        diwumingtv3.setText(listdata._$499313);
        diwumingtv4.setText(listdata._$499314);
        diwumingtv5.setText(listdata._$499315);
        diwumingtv6.setText(listdata._$499316);
        diwumingtv7.setText(listdata._$499317);
        diwumingtv8.setText(listdata._$499318);
        diwumingtv9.setText(listdata._$499319);
        diwumingtv10.setText(listdata._$499320);
        linearLayoutsList.add(new Viewbean(diwumingivlin1, name0, diwumingtv1, "第五名", "499311"));
        linearLayoutsList.add(new Viewbean(diwumingivlin2, name1, diwumingtv2, "第五名", "499312"));
        linearLayoutsList.add(new Viewbean(diwumingivlin3, name2, diwumingtv3, "第五名", "499313"));
        linearLayoutsList.add(new Viewbean(diwumingivlin4, name3, diwumingtv4, "第五名", "499314"));
        linearLayoutsList.add(new Viewbean(diwumingivlin5, name4, diwumingtv5, "第五名", "499315"));
        linearLayoutsList.add(new Viewbean(diwumingivlin6, name5, diwumingtv6, "第五名", "499316"));
        linearLayoutsList.add(new Viewbean(diwumingivlin7, name6, diwumingtv7, "第五名", "499317"));
        linearLayoutsList.add(new Viewbean(diwumingivlin8, name7, diwumingtv8, "第五名", "499318"));
        linearLayoutsList.add(new Viewbean(diwumingivlin9, name8, diwumingtv9, "第五名", "499319"));
        linearLayoutsList.add(new Viewbean(diwumingivlin10, name9, diwumingtv10, "第五名", "499320"));


        //前中后
        qiansanBaozis.setText(listdata._$4100325);
        qiansanShunzis.setText(listdata._$4100326);
        qiansanDuizis.setText(listdata._$4100327);
        qiansanBanshuns.setText(listdata._$4100328);
        qiansanZalius.setText(listdata._$4100329);
        linearLayoutsList.add(new Viewbean(qiansanBaozilin, qiansanBaozi, qiansanBaozis, "前三", "4100325"));
        linearLayoutsList.add(new Viewbean(qiansanShunzilin, qiansanShunzi, qiansanShunzis, "前三", "4100326"));
        linearLayoutsList.add(new Viewbean(qiansanDuizilin, qiansanDuizi, qiansanDuizis, "前三", "4100327"));
        linearLayoutsList.add(new Viewbean(qiansanbanshunlin, qiansanBanshun, qiansanBanshuns, "前三", "4100328"));
        linearLayoutsList.add(new Viewbean(qiansanZaliulin, qiansanZaliu, qiansanZalius, "前三", "4100329"));

        ////
        zhongsanBaozis.setText(listdata._$4101330);
        zhongsanShunzis.setText(listdata._$4101331);
        zhongsanDuizis.setText(listdata._$4101332);
        zhongsanBanshuns.setText(listdata._$4101333);
        zhongsanZalius.setText(listdata._$4101334);
        linearLayoutsList.add(new Viewbean(zhongsanbaozilin, zhongsanBaozi, zhongsanBaozis, "中三", "4101330"));
        linearLayoutsList.add(new Viewbean(zhongsanshunzilin, zhongsanShunzi, zhongsanShunzis, "中三", "4101331"));
        linearLayoutsList.add(new Viewbean(zhongsanduizilin, zhongsanDuizi, zhongsanDuizis, "中三", "4101332"));
        linearLayoutsList.add(new Viewbean(zhongsanbanshunlin, zhongsanBanshun, zhongsanBanshuns, "中三", "4101333"));
        linearLayoutsList.add(new Viewbean(zhongsanZaliulin, zhongsanZaliu, zhongsanZalius, "中三", "4101334"));

        ///////
        housanBaozis.setText(listdata._$4102335);
        housanShunzis.setText(listdata._$4102336);
        housanDuizis.setText(listdata._$4102337);
        housanBanshuns.setText(listdata._$4102338);
        housanZalius.setText(listdata._$4102339);
        linearLayoutsList.add(new Viewbean(housanbaozilin, housanBaozi, housanBaozis, "后三", "4102335"));
        linearLayoutsList.add(new Viewbean(housanshunzi, housanShunzi, housanShunzis, "后三", "4102336"));
        linearLayoutsList.add(new Viewbean(housanduizilin, housanDuizi, housanDuizis, "后三", "4102337"));
        linearLayoutsList.add(new Viewbean(housanbanshunlin, housanBanshun, housanBanshuns, "后三", "4102338"));
        linearLayoutsList.add(new Viewbean(housanZaliulin, housanZaliu, housanZalius, "后三", "4102339"));
        textcolorlist();
    }

    /**
     * 重庆时时彩
     */
    public void setdatachongqingshishicai(Reschongqingshishicai.DataBean listdata) {
        guanyalonghuhe.setVisibility(View.VISIBLE);
        guanyahetitle.setText("总和、龙虎");
        guanyadas.setText(listdata._$111);
        guanyaxiaos.setText(listdata._$112);
        guanyadans.setText(listdata._$113);
        guanyashuangs.setText(listdata._$114);
        linearLayoutsList.add(new Viewbean(guanyadalin, guanyada, guanyadas, "总和、龙虎", "111"));
        linearLayoutsList.add(new Viewbean(guanyaxiaolin, guanyaxiao, guanyaxiaos, "总和、龙虎", "112"));
        linearLayoutsList.add(new Viewbean(guanyadanlin, guanyadan, guanyadans, "总和、龙虎", "113"));
        linearLayoutsList.add(new Viewbean(guanyashuanglin, guanyashuang, guanyashuangs, "总和、龙虎", "114"));

        guanyalongs.setText(listdata._$115);
        guanyahus.setText(listdata._$116);
        guanyahes.setText(listdata._$117);
        linearLayoutsList.add(new Viewbean(guanyalonglin, guanyalong, guanyalongs, "总和、龙虎", "115"));
        linearLayoutsList.add(new Viewbean(guanyahulin, guanyahu, guanyahus, "总和、龙虎", "116"));
        linearLayoutsList.add(new Viewbean(guanyahelin, guanyahe, guanyahes, "总和、龙虎", "117"));

        diliumingDas.setText(listdata._$1218);
        diliumingXiaos.setText(listdata._$1219);
        diliumingDans.setText(listdata._$1220);
        diliumingShuangs.setText(listdata._$1221);
        linearLayoutsList.add(new Viewbean(diliumingdalin, diliumingDa, diliumingDas, "第一球", "1218"));
        linearLayoutsList.add(new Viewbean(diliumingXiaolin, diliumingXiao, diliumingXiaos, "第一球", "1219"));
        linearLayoutsList.add(new Viewbean(diliumingDanlin, diliumingDan, diliumingDans, "第一球", "1220"));
        linearLayoutsList.add(new Viewbean(diliumingShuanglin, diliumingShuang, diliumingShuangs, "第一球", "1221"));

        diqimingDas.setText(listdata._$1332);
        diqimingXiaos.setText(listdata._$1333);
        diqimingDans.setText(listdata._$1334);
        diqimingShuangs.setText(listdata._$1335);
        linearLayoutsList.add(new Viewbean(diqimingDalin, diqimingDa, diqimingDas, "第二球", "1332"));
        linearLayoutsList.add(new Viewbean(diqimingXiaolin, diqimingXiao, diqimingXiaos, "第二球", "1333"));
        linearLayoutsList.add(new Viewbean(diqimingDanlin, diqimingDan, diqimingDans, "第二球", "1334"));
        linearLayoutsList.add(new Viewbean(diqimingShuanglin, diqimingShuang, diqimingShuangs, "第二球", "1335"));

        dibamingDas.setText(listdata._$1446);
        dibamingXiaos.setText(listdata._$1447);
        dibamingDans.setText(listdata._$1448);
        dibamingShuangs.setText(listdata._$1449);
        linearLayoutsList.add(new Viewbean(dibamingDalin, dibamingDa, dibamingDas, "第三球", "1446"));
        linearLayoutsList.add(new Viewbean(dibamingXiaolin, dibamingXiao, dibamingXiaos, "第三球", "1447"));
        linearLayoutsList.add(new Viewbean(dibamingDanlin, dibamingDan, dibamingDans, "第三球", "1448"));
        linearLayoutsList.add(new Viewbean(dibamingShuanglin, dibamingShuang, dibamingShuangs, "第三球", "1449"));

        dijiumingDas.setText(listdata._$1560);
        dijiumingXiaos.setText(listdata._$1561);
        dijiumingDans.setText(listdata._$1562);
        dijiumingShuangs.setText(listdata._$1563);
        linearLayoutsList.add(new Viewbean(dijiumingDalin, dijiumingDa, dijiumingDas, "第四球", "1560"));
        linearLayoutsList.add(new Viewbean(dijiumingXiaolin, dijiumingXiao, dijiumingXiaos, "第四球", "1561"));
        linearLayoutsList.add(new Viewbean(dijiumingDanlin, dijiumingDan, dijiumingDans, "第四球", "1562"));
        linearLayoutsList.add(new Viewbean(dijiumingShuanglin, dijiumingShuang, dijiumingShuangs, "第四球", "1563"));


        dishimingDas.setText(listdata._$1674);
        dishimingXiaos.setText(listdata._$1675);
        dishimingDans.setText(listdata._$1676);
        dishimingShuangs.setText(listdata._$1677);
        linearLayoutsList.add(new Viewbean(dishimingDalin, dishimingDa, dishimingDas, "第五球", "1674"));
        linearLayoutsList.add(new Viewbean(dishimingXiaolin, dishimingXiao, dishimingXiaos, "第五球", "1675"));
        linearLayoutsList.add(new Viewbean(dishimingDanlin, dishimingDan, dishimingDans, "第五球", "1676"));
        linearLayoutsList.add(new Viewbean(dishimingShuanglin, dishimingShuang, dishimingShuangs, "第五球", "1677"));
//1-5球
        //图文
        guanjuntv1.setText(listdata._$128);
        guanjuntv2.setText(listdata._$129);
        guanjuntv3.setText(listdata._$1210);
        guanjuntv4.setText(listdata._$1211);
        guanjuntv5.setText(listdata._$1212);
        guanjuntv6.setText(listdata._$1213);
        guanjuntv7.setText(listdata._$1214);
        guanjuntv8.setText(listdata._$1215);
        guanjuntv9.setText(listdata._$1216);
        guanjuntv10.setText(listdata._$1217);
        linearLayoutsList.add(new Viewbean(guanjunivlin1, name0, guanjuntv1, "第一球", "128"));
        linearLayoutsList.add(new Viewbean(guanjunivlin2, name1, guanjuntv2, "第一球", "129"));
        linearLayoutsList.add(new Viewbean(guanjunivlin3, name2, guanjuntv3, "第一球", "1210"));
        linearLayoutsList.add(new Viewbean(guanjunivlin4, name3, guanjuntv4, "第一球", "1211"));
        linearLayoutsList.add(new Viewbean(guanjunivlin5, name4, guanjuntv5, "第一球", "1212"));
        linearLayoutsList.add(new Viewbean(guanjunivlin6, name5, guanjuntv6, "第一球", "1213"));
        linearLayoutsList.add(new Viewbean(guanjunivlin7, name6, guanjuntv7, "第一球", "1214"));
        linearLayoutsList.add(new Viewbean(guanjunivlin8, name7, guanjuntv8, "第一球", "1215"));
        linearLayoutsList.add(new Viewbean(guanjunivlin9, name8, guanjuntv9, "第一球", "1216"));
        linearLayoutsList.add(new Viewbean(guanjunivlin10, name9, guanjuntv10, "第一球", "1217"));

        yajuntv1.setText(listdata._$1322);
        yajuntv2.setText(listdata._$1323);
        yajuntv3.setText(listdata._$1324);
        yajuntv4.setText(listdata._$1325);
        yajuntv5.setText(listdata._$1326);
        yajuntv6.setText(listdata._$1327);
        yajuntv7.setText(listdata._$1328);
        yajuntv8.setText(listdata._$1329);
        yajuntv9.setText(listdata._$1330);
        yajuntv10.setText(listdata._$1331);
        linearLayoutsList.add(new Viewbean(yajunivlin1, name0, yajuntv1, "第二球", "1322"));
        linearLayoutsList.add(new Viewbean(yajunivlin2, name1, yajuntv2, "第二球", "1323"));
        linearLayoutsList.add(new Viewbean(yajunivlin3, name2, yajuntv3, "第二球", "1324"));
        linearLayoutsList.add(new Viewbean(yajunivlin4, name3, yajuntv4, "第二球", "1325"));
        linearLayoutsList.add(new Viewbean(yajunivlin5, name4, yajuntv5, "第二球", "1326"));
        linearLayoutsList.add(new Viewbean(yajunivlin6, name5, yajuntv6, "第二球", "1327"));
        linearLayoutsList.add(new Viewbean(yajunivlin7, name6, yajuntv7, "第二球", "1328"));
        linearLayoutsList.add(new Viewbean(yajunivlin8, name7, yajuntv8, "第二球", "1329"));
        linearLayoutsList.add(new Viewbean(yajunivlin9, name8, yajuntv9, "第二球", "1330"));
        linearLayoutsList.add(new Viewbean(yajunivlin10, name9, yajuntv10, "第二球", "1331"));

        disanmingtv1.setText(listdata._$1436);
        disanmingtv2.setText(listdata._$1437);
        disanmingtv3.setText(listdata._$1438);
        disanmingtv4.setText(listdata._$1439);
        disanmingtv5.setText(listdata._$1440);
        disanmingtv6.setText(listdata._$1441);
        disanmingtv7.setText(listdata._$1442);
        disanmingtv8.setText(listdata._$1443);
        disanmingtv9.setText(listdata._$1444);
        disanmingtv10.setText(listdata._$1445);
        linearLayoutsList.add(new Viewbean(disanmingivlin1, name0, disanmingtv1, "第三球", "1436"));
        linearLayoutsList.add(new Viewbean(disanmingivlin2, name1, disanmingtv2, "第三球", "1437"));
        linearLayoutsList.add(new Viewbean(disanmingivlin3, name2, disanmingtv3, "第三球", "1438"));
        linearLayoutsList.add(new Viewbean(disanmingivlin4, name3, disanmingtv4, "第三球", "1439"));
        linearLayoutsList.add(new Viewbean(disanmingivlin5, name4, disanmingtv5, "第三球", "1440"));
        linearLayoutsList.add(new Viewbean(disanmingivlin6, name5, disanmingtv6, "第三球", "1441"));
        linearLayoutsList.add(new Viewbean(disanmingivlin7, name6, disanmingtv7, "第三球", "1442"));
        linearLayoutsList.add(new Viewbean(disanmingivlin8, name7, disanmingtv8, "第三球", "1443"));
        linearLayoutsList.add(new Viewbean(disanmingivlin9, name8, disanmingtv9, "第三球", "1444"));
        linearLayoutsList.add(new Viewbean(disanmingivlin10, name9, disanmingtv10, "第三球", "1445"));

        disimingtv1.setText(listdata._$1550);
        disimingtv2.setText(listdata._$1551);
        disimingtv3.setText(listdata._$1552);
        disimingtv4.setText(listdata._$1553);
        disimingtv5.setText(listdata._$1554);
        disimingtv6.setText(listdata._$1555);
        disimingtv7.setText(listdata._$1556);
        disimingtv8.setText(listdata._$1557);
        disimingtv9.setText(listdata._$1558);
        disimingtv10.setText(listdata._$1559);
        linearLayoutsList.add(new Viewbean(disimingivlin1, name0, disimingtv1, "第四球", "1550"));
        linearLayoutsList.add(new Viewbean(disimingivlin2, name1, disimingtv2, "第四球", "1551"));
        linearLayoutsList.add(new Viewbean(disimingivlin3, name2, disimingtv3, "第四球", "1552"));
        linearLayoutsList.add(new Viewbean(disimingivlin4, name3, disimingtv4, "第四球", "1553"));
        linearLayoutsList.add(new Viewbean(disimingivlin5, name4, disimingtv5, "第四球", "1554"));
        linearLayoutsList.add(new Viewbean(disimingivlin6, name5, disimingtv6, "第四球", "1555"));
        linearLayoutsList.add(new Viewbean(disimingivlin7, name6, disimingtv7, "第四球", "1556"));
        linearLayoutsList.add(new Viewbean(disimingivlin8, name7, disimingtv8, "第四球", "1557"));
        linearLayoutsList.add(new Viewbean(disimingivlin9, name8, disimingtv9, "第四球", "1558"));
        linearLayoutsList.add(new Viewbean(disimingivlin10, name9, disimingtv10, "第四球", "1559"));

        diwumingtv1.setText(listdata._$1664);
        diwumingtv2.setText(listdata._$1665);
        diwumingtv3.setText(listdata._$1666);
        diwumingtv4.setText(listdata._$1667);
        diwumingtv5.setText(listdata._$1668);
        diwumingtv6.setText(listdata._$1669);
        diwumingtv7.setText(listdata._$1670);
        diwumingtv8.setText(listdata._$1671);
        diwumingtv9.setText(listdata._$1672);
        diwumingtv10.setText(listdata._$1673);
        linearLayoutsList.add(new Viewbean(diwumingivlin1, name0, diwumingtv1, "第五名", "1664"));
        linearLayoutsList.add(new Viewbean(diwumingivlin2, name1, diwumingtv2, "第五名", "1665"));
        linearLayoutsList.add(new Viewbean(diwumingivlin3, name2, diwumingtv3, "第五名", "1666"));
        linearLayoutsList.add(new Viewbean(diwumingivlin4, name3, diwumingtv4, "第五名", "1667"));
        linearLayoutsList.add(new Viewbean(diwumingivlin5, name4, diwumingtv5, "第五名", "1668"));
        linearLayoutsList.add(new Viewbean(diwumingivlin6, name5, diwumingtv6, "第五名", "1669"));
        linearLayoutsList.add(new Viewbean(diwumingivlin7, name6, diwumingtv7, "第五名", "1670"));
        linearLayoutsList.add(new Viewbean(diwumingivlin8, name7, diwumingtv8, "第五名", "1671"));
        linearLayoutsList.add(new Viewbean(diwumingivlin9, name8, diwumingtv9, "第五名", "1672"));
        linearLayoutsList.add(new Viewbean(diwumingivlin10, name9, diwumingtv10, "第五名", "1673"));

        qiansanBaozis.setText(listdata._$1778);
        qiansanShunzis.setText(listdata._$1779);
        qiansanDuizis.setText(listdata._$1780);
        qiansanBanshuns.setText(listdata._$1781);
        qiansanZalius.setText(listdata._$1782);
        linearLayoutsList.add(new Viewbean(qiansanBaozilin, qiansanBaozi, qiansanBaozis, "前三", "1778"));
        linearLayoutsList.add(new Viewbean(qiansanShunzilin, qiansanShunzi, qiansanShunzis, "前三", "1779"));
        linearLayoutsList.add(new Viewbean(qiansanDuizilin, qiansanDuizi, qiansanDuizis, "前三", "1780"));
        linearLayoutsList.add(new Viewbean(qiansanbanshunlin, qiansanBanshun, qiansanBanshuns, "前三", "1781"));
        linearLayoutsList.add(new Viewbean(qiansanZaliulin, qiansanZaliu, qiansanZalius, "前三", "1782"));

        zhongsanBaozis.setText(listdata._$1883);
        zhongsanShunzis.setText(listdata._$1884);
        zhongsanDuizis.setText(listdata._$1885);
        zhongsanBanshuns.setText(listdata._$1886);
        zhongsanZalius.setText(listdata._$1887);
        linearLayoutsList.add(new Viewbean(zhongsanbaozilin, zhongsanBaozi, zhongsanBaozis, "中三", "1883"));
        linearLayoutsList.add(new Viewbean(zhongsanshunzilin, zhongsanShunzi, zhongsanShunzis, "中三", "1884"));
        linearLayoutsList.add(new Viewbean(zhongsanduizilin, zhongsanDuizi, zhongsanDuizis, "中三", "1885"));
        linearLayoutsList.add(new Viewbean(zhongsanbanshunlin, zhongsanBanshun, zhongsanBanshuns, "中三", "1886"));
        linearLayoutsList.add(new Viewbean(zhongsanZaliulin, zhongsanZaliu, zhongsanZalius, "中三", "1887"));

        housanBaozis.setText(listdata._$1988);
        housanShunzis.setText(listdata._$1989);
        housanDuizis.setText(listdata._$1990);
        housanBanshuns.setText(listdata._$1991);
        housanZalius.setText(listdata._$1992);
        linearLayoutsList.add(new Viewbean(housanbaozilin, housanBaozi, housanBaozis, "后三", "1988"));
        linearLayoutsList.add(new Viewbean(housanshunzi, housanShunzi, housanShunzis, "后三", "1989"));
        linearLayoutsList.add(new Viewbean(housanduizilin, housanDuizi, housanDuizis, "后三", "1990"));
        linearLayoutsList.add(new Viewbean(housanbanshunlin, housanBanshun, housanBanshuns, "后三", "1991"));
        linearLayoutsList.add(new Viewbean(housanZaliulin, housanZaliu, housanZalius, "后三", "1992"));
        textcolorlist();
    }

    /**
     * 秒速时时彩
     */
    public void setdatamiaosushishicai(Resmiaosushishicai.DataBean listdata) {
        guanyalonghuhe.setVisibility(View.VISIBLE);
        guanyahetitle.setText("总和、龙虎");
//        guanyada.setText("大");
//        guanyaxiao.setText("小");
//        guanyadan.setText("单");
//        guanyashuang.setText("双");
        guanyadas.setText(listdata._$811232334);
        guanyaxiaos.setText(listdata._$811232335);
        guanyadans.setText(listdata._$811232336);
        guanyashuangs.setText(listdata._$811232337);
        linearLayoutsList.add(new Viewbean(guanyadalin, guanyada, guanyadas, "总和、龙虎", "811232334"));
        linearLayoutsList.add(new Viewbean(guanyaxiaolin, guanyaxiao, guanyaxiaos, "总和、龙虎", "811232335"));
        linearLayoutsList.add(new Viewbean(guanyadanlin, guanyadan, guanyadans, "总和、龙虎", "811232336"));
        linearLayoutsList.add(new Viewbean(guanyashuanglin, guanyashuang, guanyashuangs, "总和、龙虎", "811232337"));

        guanyalongs.setText(listdata._$811232338);
        guanyahus.setText(listdata._$811232339);
        guanyahes.setText(listdata._$811232340);
        linearLayoutsList.add(new Viewbean(guanyalonglin, guanyalong, guanyalongs, "总和、龙虎", "811232338"));
        linearLayoutsList.add(new Viewbean(guanyahulin, guanyahu, guanyahus, "总和、龙虎", "811232339"));
        linearLayoutsList.add(new Viewbean(guanyahelin, guanyahe, guanyahes, "总和、龙虎", "811232340"));

        diliumingDas.setText(listdata._$811242351);
        diliumingXiaos.setText(listdata._$811242352);
        diliumingDans.setText(listdata._$811242353);
        diliumingShuangs.setText(listdata._$811242354);
        linearLayoutsList.add(new Viewbean(diliumingdalin, diliumingDa, diliumingDas, "第一球", "811242351"));
        linearLayoutsList.add(new Viewbean(diliumingXiaolin, diliumingXiao, diliumingXiaos, "第一球", "811242352"));
        linearLayoutsList.add(new Viewbean(diliumingDanlin, diliumingDan, diliumingDans, "第一球", "811242353"));
        linearLayoutsList.add(new Viewbean(diliumingShuanglin, diliumingShuang, diliumingShuangs, "第一球", "811242354"));

        diqimingDas.setText(listdata._$811252365);
        diqimingXiaos.setText(listdata._$811252366);
        diqimingDans.setText(listdata._$811252367);
        diqimingShuangs.setText(listdata._$811252368);
        linearLayoutsList.add(new Viewbean(diqimingDalin, diqimingDa, diqimingDas, "第二球", "811252365"));
        linearLayoutsList.add(new Viewbean(diqimingXiaolin, diqimingXiao, diqimingXiaos, "第二球", "811252366"));
        linearLayoutsList.add(new Viewbean(diqimingDanlin, diqimingDan, diqimingDans, "第二球", "811252367"));
        linearLayoutsList.add(new Viewbean(diqimingShuanglin, diqimingShuang, diqimingShuangs, "第二球", "811252368"));


        dibamingDas.setText(listdata._$811262379);
        dibamingXiaos.setText(listdata._$811262380);
        dibamingDans.setText(listdata._$811262381);
        dibamingShuangs.setText(listdata._$811262382);
        linearLayoutsList.add(new Viewbean(dibamingDalin, dibamingDa, dibamingDas, "第三球", "811262379"));
        linearLayoutsList.add(new Viewbean(dibamingXiaolin, dibamingXiao, dibamingXiaos, "第三球", "811262380"));
        linearLayoutsList.add(new Viewbean(dibamingDanlin, dibamingDan, dibamingDans, "第三球", "811262381"));
        linearLayoutsList.add(new Viewbean(dibamingShuanglin, dibamingShuang, dibamingShuangs, "第三球", "811262382"));


        dijiumingDas.setText(listdata._$811272393);
        dijiumingXiaos.setText(listdata._$811272394);
        dijiumingDans.setText(listdata._$811272395);
        dijiumingShuangs.setText(listdata._$811272396);
        linearLayoutsList.add(new Viewbean(dijiumingDalin, dijiumingDa, dijiumingDas, "第四球", "811272393"));
        linearLayoutsList.add(new Viewbean(dijiumingXiaolin, dijiumingXiao, dijiumingXiaos, "第四球", "811272394"));
        linearLayoutsList.add(new Viewbean(dijiumingDanlin, dijiumingDan, dijiumingDans, "第四球", "811272395"));
        linearLayoutsList.add(new Viewbean(dijiumingShuanglin, dijiumingShuang, dijiumingShuangs, "第四球", "811272396"));


        dishimingDas.setText(listdata._$811282407);
        dishimingXiaos.setText(listdata._$811282408);
        dishimingDans.setText(listdata._$811282409);
        dishimingShuangs.setText(listdata._$811282410);
        linearLayoutsList.add(new Viewbean(dishimingDalin, dishimingDa, dishimingDas, "第五球", "811282407"));
        linearLayoutsList.add(new Viewbean(dishimingXiaolin, dishimingXiao, dishimingXiaos, "第五球", "811282408"));
        linearLayoutsList.add(new Viewbean(dishimingDanlin, dishimingDan, dishimingDans, "第五球", "811282409"));
        linearLayoutsList.add(new Viewbean(dishimingShuanglin, dishimingShuang, dishimingShuangs, "第五球", "811282410"));

//1-5球
        //图文
        guanjuntv1.setText(listdata._$811242341);
        guanjuntv2.setText(listdata._$811242342);
        guanjuntv3.setText(listdata._$811242343);
        guanjuntv4.setText(listdata._$811242344);
        guanjuntv5.setText(listdata._$811242345);
        guanjuntv6.setText(listdata._$811242346);
        guanjuntv7.setText(listdata._$811242347);
        guanjuntv8.setText(listdata._$811242348);
        guanjuntv9.setText(listdata._$811242349);
        guanjuntv10.setText(listdata._$811242350);
        linearLayoutsList.add(new Viewbean(guanjunivlin1, name0, guanjuntv1, "第一球", "811242341"));
        linearLayoutsList.add(new Viewbean(guanjunivlin2, name1, guanjuntv2, "第一球", "811242342"));
        linearLayoutsList.add(new Viewbean(guanjunivlin3, name2, guanjuntv3, "第一球", "811242343"));
        linearLayoutsList.add(new Viewbean(guanjunivlin4, name3, guanjuntv4, "第一球", "811242344"));
        linearLayoutsList.add(new Viewbean(guanjunivlin5, name4, guanjuntv5, "第一球", "811242345"));
        linearLayoutsList.add(new Viewbean(guanjunivlin6, name5, guanjuntv6, "第一球", "811242346"));
        linearLayoutsList.add(new Viewbean(guanjunivlin7, name6, guanjuntv7, "第一球", "811242347"));
        linearLayoutsList.add(new Viewbean(guanjunivlin8, name7, guanjuntv8, "第一球", "811242348"));
        linearLayoutsList.add(new Viewbean(guanjunivlin9, name8, guanjuntv9, "第一球", "811242349"));
        linearLayoutsList.add(new Viewbean(guanjunivlin10, name9, guanjuntv10, "第一球", "811242350"));

        yajuntv1.setText(listdata._$811252355);
        yajuntv2.setText(listdata._$811252356);
        yajuntv3.setText(listdata._$811252357);
        yajuntv4.setText(listdata._$811252358);
        yajuntv5.setText(listdata._$811252359);
        yajuntv6.setText(listdata._$811252360);
        yajuntv7.setText(listdata._$811252361);
        yajuntv8.setText(listdata._$811252362);
        yajuntv9.setText(listdata._$811252363);
        yajuntv10.setText(listdata._$811252364);
        linearLayoutsList.add(new Viewbean(yajunivlin1, name0, yajuntv1, "第二球", "811252355"));
        linearLayoutsList.add(new Viewbean(yajunivlin2, name1, yajuntv2, "第二球", "811252356"));
        linearLayoutsList.add(new Viewbean(yajunivlin3, name2, yajuntv3, "第二球", "811252357"));
        linearLayoutsList.add(new Viewbean(yajunivlin4, name3, yajuntv4, "第二球", "811252358"));
        linearLayoutsList.add(new Viewbean(yajunivlin5, name4, yajuntv5, "第二球", "811252359"));
        linearLayoutsList.add(new Viewbean(yajunivlin6, name5, yajuntv6, "第二球", "811252360"));
        linearLayoutsList.add(new Viewbean(yajunivlin7, name6, yajuntv7, "第二球", "811252361"));
        linearLayoutsList.add(new Viewbean(yajunivlin8, name7, yajuntv8, "第二球", "811252362"));
        linearLayoutsList.add(new Viewbean(yajunivlin9, name8, yajuntv9, "第二球", "811252363"));
        linearLayoutsList.add(new Viewbean(yajunivlin10, name9, yajuntv10, "第二球", "811252364"));

        disanmingtv1.setText(listdata._$811262369);
        disanmingtv2.setText(listdata._$811262370);
        disanmingtv3.setText(listdata._$811262371);
        disanmingtv4.setText(listdata._$811262372);
        disanmingtv5.setText(listdata._$811262373);
        disanmingtv6.setText(listdata._$811262374);
        disanmingtv7.setText(listdata._$811262375);
        disanmingtv8.setText(listdata._$811262376);
        disanmingtv9.setText(listdata._$811262377);
        disanmingtv10.setText(listdata._$811262378);
        linearLayoutsList.add(new Viewbean(disanmingivlin1, name0, disanmingtv1, "第三球", "811262369"));
        linearLayoutsList.add(new Viewbean(disanmingivlin2, name1, disanmingtv2, "第三球", "811262370"));
        linearLayoutsList.add(new Viewbean(disanmingivlin3, name2, disanmingtv3, "第三球", "811262371"));
        linearLayoutsList.add(new Viewbean(disanmingivlin4, name3, disanmingtv4, "第三球", "811262372"));
        linearLayoutsList.add(new Viewbean(disanmingivlin5, name4, disanmingtv5, "第三球", "811262373"));
        linearLayoutsList.add(new Viewbean(disanmingivlin6, name5, disanmingtv6, "第三球", "811262374"));
        linearLayoutsList.add(new Viewbean(disanmingivlin7, name6, disanmingtv7, "第三球", "811262375"));
        linearLayoutsList.add(new Viewbean(disanmingivlin8, name7, disanmingtv8, "第三球", "811262376"));
        linearLayoutsList.add(new Viewbean(disanmingivlin9, name8, disanmingtv9, "第三球", "811262377"));
        linearLayoutsList.add(new Viewbean(disanmingivlin10, name9, disanmingtv10, "第三球", "811262378"));

        disimingtv1.setText(listdata._$811272383);
        disimingtv2.setText(listdata._$811272384);
        disimingtv3.setText(listdata._$811272385);
        disimingtv4.setText(listdata._$811272386);
        disimingtv5.setText(listdata._$811272387);
        disimingtv6.setText(listdata._$811272388);
        disimingtv7.setText(listdata._$811272389);
        disimingtv8.setText(listdata._$811272390);
        disimingtv9.setText(listdata._$811272391);
        disimingtv10.setText(listdata._$811272392);
        linearLayoutsList.add(new Viewbean(disimingivlin1, name0, disimingtv1, "第四球", "811272383"));
        linearLayoutsList.add(new Viewbean(disimingivlin2, name1, disimingtv2, "第四球", "811272384"));
        linearLayoutsList.add(new Viewbean(disimingivlin3, name2, disimingtv3, "第四球", "811272385"));
        linearLayoutsList.add(new Viewbean(disimingivlin4, name3, disimingtv4, "第四球", "811272386"));
        linearLayoutsList.add(new Viewbean(disimingivlin5, name4, disimingtv5, "第四球", "811272387"));
        linearLayoutsList.add(new Viewbean(disimingivlin6, name5, disimingtv6, "第四球", "811272388"));
        linearLayoutsList.add(new Viewbean(disimingivlin7, name6, disimingtv7, "第四球", "811272389"));
        linearLayoutsList.add(new Viewbean(disimingivlin8, name7, disimingtv8, "第四球", "811272390"));
        linearLayoutsList.add(new Viewbean(disimingivlin9, name8, disimingtv9, "第四球", "811272391"));
        linearLayoutsList.add(new Viewbean(disimingivlin10, name9, disimingtv10, "第四球", "811272392"));

        diwumingtv1.setText(listdata._$811282397);
        diwumingtv2.setText(listdata._$811282398);
        diwumingtv3.setText(listdata._$811282399);
        diwumingtv4.setText(listdata._$811282400);
        diwumingtv5.setText(listdata._$811282401);
        diwumingtv6.setText(listdata._$811282402);
        diwumingtv7.setText(listdata._$811282403);
        diwumingtv8.setText(listdata._$811282404);
        diwumingtv9.setText(listdata._$811282405);
        diwumingtv10.setText(listdata._$811282406);
        linearLayoutsList.add(new Viewbean(diwumingivlin1, name0, diwumingtv1, "第五球", "811282397"));
        linearLayoutsList.add(new Viewbean(diwumingivlin2, name1, diwumingtv2, "第五球", "811282398"));
        linearLayoutsList.add(new Viewbean(diwumingivlin3, name2, diwumingtv3, "第五球", "811282399"));
        linearLayoutsList.add(new Viewbean(diwumingivlin4, name3, diwumingtv4, "第五球", "811282400"));
        linearLayoutsList.add(new Viewbean(diwumingivlin5, name4, diwumingtv5, "第五球", "811282401"));
        linearLayoutsList.add(new Viewbean(diwumingivlin6, name5, diwumingtv6, "第五球", "811282402"));
        linearLayoutsList.add(new Viewbean(diwumingivlin7, name6, diwumingtv7, "第五球", "811282403"));
        linearLayoutsList.add(new Viewbean(diwumingivlin8, name7, diwumingtv8, "第五球", "811282404"));
        linearLayoutsList.add(new Viewbean(diwumingivlin9, name8, diwumingtv9, "第五球", "811282405"));
        linearLayoutsList.add(new Viewbean(diwumingivlin10, name9, diwumingtv10, "第五球", "811282406"));

        qiansanBaozis.setText(listdata._$811292411);
        qiansanShunzis.setText(listdata._$811292412);
        qiansanDuizis.setText(listdata._$811292413);
        qiansanBanshuns.setText(listdata._$811292414);
        qiansanZalius.setText(listdata._$811292415);
        linearLayoutsList.add(new Viewbean(qiansanBaozilin, qiansanBaozi, qiansanBaozis, "前三", "811292411"));
        linearLayoutsList.add(new Viewbean(qiansanShunzilin, qiansanShunzi, qiansanShunzis, "前三", "811292412"));
        linearLayoutsList.add(new Viewbean(qiansanDuizilin, qiansanDuizi, qiansanDuizis, "前三", "811292413"));
        linearLayoutsList.add(new Viewbean(qiansanbanshunlin, qiansanBanshun, qiansanBanshuns, "前三", "811292414"));
        linearLayoutsList.add(new Viewbean(qiansanZaliulin, qiansanZaliu, qiansanZalius, "前三", "811292415"));

        zhongsanBaozis.setText(listdata._$811302416);
        zhongsanShunzis.setText(listdata._$811302417);
        zhongsanDuizis.setText(listdata._$811302418);
        zhongsanBanshuns.setText(listdata._$811302419);
        zhongsanZalius.setText(listdata._$811302420);
        linearLayoutsList.add(new Viewbean(zhongsanbaozilin, zhongsanBaozi, zhongsanBaozis, "中三", "811302416"));
        linearLayoutsList.add(new Viewbean(zhongsanshunzilin, zhongsanShunzi, zhongsanShunzis, "中三", "811302417"));
        linearLayoutsList.add(new Viewbean(zhongsanduizilin, zhongsanDuizi, zhongsanDuizis, "中三", "811302418"));
        linearLayoutsList.add(new Viewbean(zhongsanbanshunlin, zhongsanBanshun, zhongsanBanshuns, "中三", "811302419"));
        linearLayoutsList.add(new Viewbean(zhongsanZaliulin, zhongsanZaliu, zhongsanZalius, "中三", "811302420"));

        housanBaozis.setText(listdata._$811312421);
        housanShunzis.setText(listdata._$811312422);
        housanDuizis.setText(listdata._$811312423);
        housanBanshuns.setText(listdata._$811312424);
        housanZalius.setText(listdata._$811312425);
        linearLayoutsList.add(new Viewbean(housanbaozilin, housanBaozi, housanBaozis, "后三", "811312421"));
        linearLayoutsList.add(new Viewbean(housanshunzi, housanShunzi, housanShunzis, "后三", "811312422"));
        linearLayoutsList.add(new Viewbean(housanduizilin, housanDuizi, housanDuizis, "后三", "811312423"));
        linearLayoutsList.add(new Viewbean(housanbanshunlin, housanBanshun, housanBanshuns, "后三", "811312424"));
        linearLayoutsList.add(new Viewbean(housanZaliulin, housanZaliu, housanZalius, "后三", "811312425"));

        textcolorlist();
    }

    /**
     * 腾讯分分彩
     *
     * @param listdata
     */
    public void setdatatengxunfenfencai(Restengxunfenfencai.DataBean listdata) {
        guanyalonghuhe.setVisibility(View.VISIBLE);
        guanyahetitle.setText("总和、龙虎");
        guanyadas.setText(listdata._$1122784649);
        guanyaxiaos.setText(listdata._$1122784650);
        guanyadans.setText(listdata._$1122784651);
        guanyashuangs.setText(listdata._$1122784652);
        linearLayoutsList.add(new Viewbean(guanyadalin, guanyada, guanyadas, "总和、龙虎", "1122784649"));
        linearLayoutsList.add(new Viewbean(guanyaxiaolin, guanyaxiao, guanyaxiaos, "总和、龙虎", "1122784650"));
        linearLayoutsList.add(new Viewbean(guanyadanlin, guanyadan, guanyadans, "总和、龙虎", "1122784651"));
        linearLayoutsList.add(new Viewbean(guanyashuanglin, guanyashuang, guanyashuangs, "总和、龙虎", "1122784652"));

        guanyalongs.setText(listdata._$1122784653);
        guanyahus.setText(listdata._$1122784654);
        guanyahes.setText(listdata._$1122784655);
        linearLayoutsList.add(new Viewbean(guanyalonglin, guanyalong, guanyalongs, "总和、龙虎", "1122784653"));
        linearLayoutsList.add(new Viewbean(guanyahulin, guanyahu, guanyahus, "总和、龙虎", "1122784654"));
        linearLayoutsList.add(new Viewbean(guanyahelin, guanyahe, guanyahes, "总和、龙虎", "1122784655"));

        diliumingDas.setText(listdata._$1122794666);
        diliumingXiaos.setText(listdata._$1122794667);
        diliumingDans.setText(listdata._$1122794668);
        diliumingShuangs.setText(listdata._$1122794669);
        linearLayoutsList.add(new Viewbean(diliumingdalin, diliumingDa, diliumingDas, "第一球", "1122794666"));
        linearLayoutsList.add(new Viewbean(diliumingXiaolin, diliumingXiao, diliumingXiaos, "第一球", "1122794666"));
        linearLayoutsList.add(new Viewbean(diliumingDanlin, diliumingDan, diliumingDans, "第一球", "1122794666"));
        linearLayoutsList.add(new Viewbean(diliumingShuanglin, diliumingShuang, diliumingShuangs, "第一球", "1122794666"));

        diqimingDas.setText(listdata._$1122804680);
        diqimingXiaos.setText(listdata._$1122804681);
        diqimingDans.setText(listdata._$1122804682);
        diqimingShuangs.setText(listdata._$1122804683);
        linearLayoutsList.add(new Viewbean(diqimingDalin, diqimingDa, diqimingDas, "第二球", "1122804680"));
        linearLayoutsList.add(new Viewbean(diqimingXiaolin, diqimingXiao, diqimingXiaos, "第二球", "1122804681"));
        linearLayoutsList.add(new Viewbean(diqimingDanlin, diqimingDan, diqimingDans, "第二球", "1122804682"));
        linearLayoutsList.add(new Viewbean(diqimingShuanglin, diqimingShuang, diqimingShuangs, "第二球", "1122804683"));


        dibamingDas.setText(listdata._$1122814694);
        dibamingXiaos.setText(listdata._$1122814694);
        dibamingDans.setText(listdata._$1122814694);
        dibamingShuangs.setText(listdata._$1122814694);
        linearLayoutsList.add(new Viewbean(dibamingDalin, dibamingDa, dibamingDas, "第三球", "1122814694"));
        linearLayoutsList.add(new Viewbean(dibamingXiaolin, dibamingXiao, dibamingXiaos, "第三球", "1122814695"));
        linearLayoutsList.add(new Viewbean(dibamingDanlin, dibamingDan, dibamingDans, "第三球", "1122814696"));
        linearLayoutsList.add(new Viewbean(dibamingShuanglin, dibamingShuang, dibamingShuangs, "第三球", "1122814697"));


        dijiumingDas.setText(listdata._$1122824708);
        dijiumingXiaos.setText(listdata._$1122824709);
        dijiumingDans.setText(listdata._$1122824710);
        dijiumingShuangs.setText(listdata._$1122824711);
        linearLayoutsList.add(new Viewbean(dijiumingDalin, dijiumingDa, dijiumingDas, "第四球", "1122824708"));
        linearLayoutsList.add(new Viewbean(dijiumingXiaolin, dijiumingXiao, dijiumingXiaos, "第四球", "1122824709"));
        linearLayoutsList.add(new Viewbean(dijiumingDanlin, dijiumingDan, dijiumingDans, "第四球", "1122824710"));
        linearLayoutsList.add(new Viewbean(dijiumingShuanglin, dijiumingShuang, dijiumingShuangs, "第四球", "1122824711"));


        dishimingDas.setText(listdata._$1122834722);
        dishimingXiaos.setText(listdata._$1122834723);
        dishimingDans.setText(listdata._$1122834724);
        dishimingShuangs.setText(listdata._$1122834725);
        linearLayoutsList.add(new Viewbean(dishimingDalin, dishimingDa, dishimingDas, "第五球", "1122834722"));
        linearLayoutsList.add(new Viewbean(dishimingXiaolin, dishimingXiao, dishimingXiaos, "第五球", "1122834723"));
        linearLayoutsList.add(new Viewbean(dishimingDanlin, dishimingDan, dishimingDans, "第五球", "1122834724"));
        linearLayoutsList.add(new Viewbean(dishimingShuanglin, dishimingShuang, dishimingShuangs, "第五球", "1122834725"));

//1-5球
        //图文
        guanjuntv1.setText(listdata._$1122794656);
        guanjuntv2.setText(listdata._$1122794657);
        guanjuntv3.setText(listdata._$1122794658);
        guanjuntv4.setText(listdata._$1122794659);
        guanjuntv5.setText(listdata._$1122794660);
        guanjuntv6.setText(listdata._$1122794661);
        guanjuntv7.setText(listdata._$1122794662);
        guanjuntv8.setText(listdata._$1122794663);
        guanjuntv9.setText(listdata._$1122794664);
        guanjuntv10.setText(listdata._$1122794665);
        linearLayoutsList.add(new Viewbean(guanjunivlin1, name0, guanjuntv1, "第一球", "1122794656"));
        linearLayoutsList.add(new Viewbean(guanjunivlin2, name1, guanjuntv2, "第一球", "1122794657"));
        linearLayoutsList.add(new Viewbean(guanjunivlin3, name2, guanjuntv3, "第一球", "1122794658"));
        linearLayoutsList.add(new Viewbean(guanjunivlin4, name3, guanjuntv4, "第一球", "1122794659"));
        linearLayoutsList.add(new Viewbean(guanjunivlin5, name4, guanjuntv5, "第一球", "1122794660"));
        linearLayoutsList.add(new Viewbean(guanjunivlin6, name5, guanjuntv6, "第一球", "1122794661"));
        linearLayoutsList.add(new Viewbean(guanjunivlin7, name6, guanjuntv7, "第一球", "1122794662"));
        linearLayoutsList.add(new Viewbean(guanjunivlin8, name7, guanjuntv8, "第一球", "1122794663"));
        linearLayoutsList.add(new Viewbean(guanjunivlin9, name8, guanjuntv9, "第一球", "1122794664"));
        linearLayoutsList.add(new Viewbean(guanjunivlin10, name9, guanjuntv10, "第一球", "1122794665"));

        yajuntv1.setText(listdata._$1122804670);
        yajuntv2.setText(listdata._$1122804671);
        yajuntv3.setText(listdata._$1122804672);
        yajuntv4.setText(listdata._$1122804673);
        yajuntv5.setText(listdata._$1122804674);
        yajuntv6.setText(listdata._$1122804675);
        yajuntv7.setText(listdata._$1122804676);
        yajuntv8.setText(listdata._$1122804677);
        yajuntv9.setText(listdata._$1122804678);
        yajuntv10.setText(listdata._$1122804679);
        linearLayoutsList.add(new Viewbean(yajunivlin1, name0, yajuntv1, "第二球", "1122804670"));
        linearLayoutsList.add(new Viewbean(yajunivlin2, name1, yajuntv2, "第二球", "1122804671"));
        linearLayoutsList.add(new Viewbean(yajunivlin3, name2, yajuntv3, "第二球", "1122804672"));
        linearLayoutsList.add(new Viewbean(yajunivlin4, name3, yajuntv4, "第二球", "1122804673"));
        linearLayoutsList.add(new Viewbean(yajunivlin5, name4, yajuntv5, "第二球", "1122804674"));
        linearLayoutsList.add(new Viewbean(yajunivlin6, name5, yajuntv6, "第二球", "1122804675"));
        linearLayoutsList.add(new Viewbean(yajunivlin7, name6, yajuntv7, "第二球", "1122804676"));
        linearLayoutsList.add(new Viewbean(yajunivlin8, name7, yajuntv8, "第二球", "1122804677"));
        linearLayoutsList.add(new Viewbean(yajunivlin9, name8, yajuntv9, "第二球", "1122804678"));
        linearLayoutsList.add(new Viewbean(yajunivlin10, name9, yajuntv10, "第二球", "1122804679"));

        disanmingtv1.setText(listdata._$1122814684);
        disanmingtv2.setText(listdata._$1122814685);
        disanmingtv3.setText(listdata._$1122814686);
        disanmingtv4.setText(listdata._$1122814687);
        disanmingtv5.setText(listdata._$1122814688);
        disanmingtv6.setText(listdata._$1122814689);
        disanmingtv7.setText(listdata._$1122814690);
        disanmingtv8.setText(listdata._$1122814691);
        disanmingtv9.setText(listdata._$1122814692);
        disanmingtv10.setText(listdata._$1122814693);
        linearLayoutsList.add(new Viewbean(disanmingivlin1, name0, disanmingtv1, "第三球", "1122814684"));
        linearLayoutsList.add(new Viewbean(disanmingivlin2, name1, disanmingtv2, "第三球", "1122814685"));
        linearLayoutsList.add(new Viewbean(disanmingivlin3, name2, disanmingtv3, "第三球", "1122814686"));
        linearLayoutsList.add(new Viewbean(disanmingivlin4, name3, disanmingtv4, "第三球", "1122814687"));
        linearLayoutsList.add(new Viewbean(disanmingivlin5, name4, disanmingtv5, "第三球", "1122814688"));
        linearLayoutsList.add(new Viewbean(disanmingivlin6, name5, disanmingtv6, "第三球", "1122814689"));
        linearLayoutsList.add(new Viewbean(disanmingivlin7, name6, disanmingtv7, "第三球", "1122814690"));
        linearLayoutsList.add(new Viewbean(disanmingivlin8, name7, disanmingtv8, "第三球", "1122814691"));
        linearLayoutsList.add(new Viewbean(disanmingivlin9, name8, disanmingtv9, "第三球", "1122814692"));
        linearLayoutsList.add(new Viewbean(disanmingivlin10, name9, disanmingtv10, "第三球", "1122814693"));

        disimingtv1.setText(listdata._$1122824698);
        disimingtv2.setText(listdata._$1122824699);
        disimingtv3.setText(listdata._$1122824700);
        disimingtv4.setText(listdata._$1122824701);
        disimingtv5.setText(listdata._$1122824702);
        disimingtv6.setText(listdata._$1122824703);
        disimingtv7.setText(listdata._$1122824704);
        disimingtv8.setText(listdata._$1122824705);
        disimingtv9.setText(listdata._$1122824706);
        disimingtv10.setText(listdata._$1122824707);
        linearLayoutsList.add(new Viewbean(disimingivlin1, name0, disimingtv1, "第四球", "1122824698"));
        linearLayoutsList.add(new Viewbean(disimingivlin2, name1, disimingtv2, "第四球", "1122824699"));
        linearLayoutsList.add(new Viewbean(disimingivlin3, name2, disimingtv3, "第四球", "1122824700"));
        linearLayoutsList.add(new Viewbean(disimingivlin4, name3, disimingtv4, "第四球", "1122824701"));
        linearLayoutsList.add(new Viewbean(disimingivlin5, name4, disimingtv5, "第四球", "1122824702"));
        linearLayoutsList.add(new Viewbean(disimingivlin6, name5, disimingtv6, "第四球", "1122824703"));
        linearLayoutsList.add(new Viewbean(disimingivlin7, name6, disimingtv7, "第四球", "1122824704"));
        linearLayoutsList.add(new Viewbean(disimingivlin8, name7, disimingtv8, "第四球", "1122824705"));
        linearLayoutsList.add(new Viewbean(disimingivlin9, name8, disimingtv9, "第四球", "1122824706"));
        linearLayoutsList.add(new Viewbean(disimingivlin10, name9, disimingtv10, "第四球", "1122824707"));

        diwumingtv1.setText(listdata._$1122834712);
        diwumingtv2.setText(listdata._$1122834713);
        diwumingtv3.setText(listdata._$1122834714);
        diwumingtv4.setText(listdata._$1122834715);
        diwumingtv5.setText(listdata._$1122834716);
        diwumingtv6.setText(listdata._$1122834717);
        diwumingtv7.setText(listdata._$1122834718);
        diwumingtv8.setText(listdata._$1122834719);
        diwumingtv9.setText(listdata._$1122834720);
        diwumingtv10.setText(listdata._$1122834721);
        linearLayoutsList.add(new Viewbean(diwumingivlin1, name0, diwumingtv1, "第五球", "1122834712"));
        linearLayoutsList.add(new Viewbean(diwumingivlin2, name1, diwumingtv2, "第五球", "1122834713"));
        linearLayoutsList.add(new Viewbean(diwumingivlin3, name2, diwumingtv3, "第五球", "1122834714"));
        linearLayoutsList.add(new Viewbean(diwumingivlin4, name3, diwumingtv4, "第五球", "1122834715"));
        linearLayoutsList.add(new Viewbean(diwumingivlin5, name4, diwumingtv5, "第五球", "1122834716"));
        linearLayoutsList.add(new Viewbean(diwumingivlin6, name5, diwumingtv6, "第五球", "1122834717"));
        linearLayoutsList.add(new Viewbean(diwumingivlin7, name6, diwumingtv7, "第五球", "1122834718"));
        linearLayoutsList.add(new Viewbean(diwumingivlin8, name7, diwumingtv8, "第五球", "1122834719"));
        linearLayoutsList.add(new Viewbean(diwumingivlin9, name8, diwumingtv9, "第五球", "1122834720"));
        linearLayoutsList.add(new Viewbean(diwumingivlin10, name9, diwumingtv10, "第五球", "1122834721"));

        qiansanBaozis.setText(listdata._$1122844726);
        qiansanShunzis.setText(listdata._$1122844727);
        qiansanDuizis.setText(listdata._$1122844728);
        qiansanBanshuns.setText(listdata._$1122844729);
        qiansanZalius.setText(listdata._$1122844730);
        linearLayoutsList.add(new Viewbean(qiansanBaozilin, qiansanBaozi, qiansanBaozis, "前三", "1122844726"));
        linearLayoutsList.add(new Viewbean(qiansanShunzilin, qiansanShunzi, qiansanShunzis, "前三", "1122844727"));
        linearLayoutsList.add(new Viewbean(qiansanDuizilin, qiansanDuizi, qiansanDuizis, "前三", "1122844728"));
        linearLayoutsList.add(new Viewbean(qiansanbanshunlin, qiansanBanshun, qiansanBanshuns, "前三", "1122844729"));
        linearLayoutsList.add(new Viewbean(qiansanZaliulin, qiansanZaliu, qiansanZalius, "前三", "1122844730"));

        zhongsanBaozis.setText(listdata._$1122854731);
        zhongsanShunzis.setText(listdata._$1122854732);
        zhongsanDuizis.setText(listdata._$1122854733);
        zhongsanBanshuns.setText(listdata._$1122854734);
        zhongsanZalius.setText(listdata._$1122854735);
        linearLayoutsList.add(new Viewbean(zhongsanbaozilin, zhongsanBaozi, zhongsanBaozis, "中三", "1122854731"));
        linearLayoutsList.add(new Viewbean(zhongsanshunzilin, zhongsanShunzi, zhongsanShunzis, "中三", "1122854732"));
        linearLayoutsList.add(new Viewbean(zhongsanduizilin, zhongsanDuizi, zhongsanDuizis, "中三", "1122854733"));
        linearLayoutsList.add(new Viewbean(zhongsanbanshunlin, zhongsanBanshun, zhongsanBanshuns, "中三", "1122854734"));
        linearLayoutsList.add(new Viewbean(zhongsanZaliulin, zhongsanZaliu, zhongsanZalius, "中三", "1122854735"));

        housanBaozis.setText(listdata._$1122864736);
        housanShunzis.setText(listdata._$1122864737);
        housanDuizis.setText(listdata._$1122864738);
        housanBanshuns.setText(listdata._$1122864739);
        housanZalius.setText(listdata._$1122864740);
        linearLayoutsList.add(new Viewbean(housanbaozilin, housanBaozi, housanBaozis, "后三", "1122864736"));
        linearLayoutsList.add(new Viewbean(housanshunzi, housanShunzi, housanShunzis, "后三", "1122864737"));
        linearLayoutsList.add(new Viewbean(housanduizilin, housanDuizi, housanDuizis, "后三", "1122864738"));
        linearLayoutsList.add(new Viewbean(housanbanshunlin, housanBanshun, housanBanshuns, "后三", "1122864739"));
        linearLayoutsList.add(new Viewbean(housanZaliulin, housanZaliu, housanZalius, "后三", "1122864740"));

        textcolorlist();

    }

    /**
     * QQ分分彩
     *
     * @param listdata
     */
    public void setdataqqfenfencai(Resqqfenfencai.DataBean listdata) {
        guanyalonghuhe.setVisibility(View.VISIBLE);
        guanyahetitle.setText("总和、龙虎");
        guanyadas.setText(listdata._$1132874963);
        guanyaxiaos.setText(listdata._$1132874964);
        guanyadans.setText(listdata._$1132874965);
        guanyashuangs.setText(listdata._$1132874966);
        linearLayoutsList.add(new Viewbean(guanyadalin, guanyada, guanyadas, "总和、龙虎", "1132874963"));
        linearLayoutsList.add(new Viewbean(guanyaxiaolin, guanyaxiao, guanyaxiaos, "总和、龙虎", "1132874964"));
        linearLayoutsList.add(new Viewbean(guanyadanlin, guanyadan, guanyadans, "总和、龙虎", "1132874965"));
        linearLayoutsList.add(new Viewbean(guanyashuanglin, guanyashuang, guanyashuangs, "总和、龙虎", "1132874966"));

        guanyalongs.setText(listdata._$1132874967);
        guanyahus.setText(listdata._$1132874968);
        guanyahes.setText(listdata._$1132874969);
        linearLayoutsList.add(new Viewbean(guanyalonglin, guanyalong, guanyalongs, "总和、龙虎", "1132874967"));
        linearLayoutsList.add(new Viewbean(guanyahulin, guanyahu, guanyahus, "总和、龙虎", "1132874968"));
        linearLayoutsList.add(new Viewbean(guanyahelin, guanyahe, guanyahes, "总和、龙虎", "1132874969"));

        diliumingDas.setText(listdata._$1132884980);
        diliumingXiaos.setText(listdata._$1132884981);
        diliumingDans.setText(listdata._$1132884982);
        diliumingShuangs.setText(listdata._$1132884983);
        linearLayoutsList.add(new Viewbean(diliumingdalin, diliumingDa, diliumingDas, "第一球", "1132884980"));
        linearLayoutsList.add(new Viewbean(diliumingXiaolin, diliumingXiao, diliumingXiaos, "第一球", "1132884981"));
        linearLayoutsList.add(new Viewbean(diliumingDanlin, diliumingDan, diliumingDans, "第一球", "1132884982"));
        linearLayoutsList.add(new Viewbean(diliumingShuanglin, diliumingShuang, diliumingShuangs, "第一球", "1132884983"));

        diqimingDas.setText(listdata._$1132894994);
        diqimingXiaos.setText(listdata._$1132894995);
        diqimingDans.setText(listdata._$1132894996);
        diqimingShuangs.setText(listdata._$1132894997);
        linearLayoutsList.add(new Viewbean(diqimingDalin, diqimingDa, diqimingDas, "第二球", "1132894994"));
        linearLayoutsList.add(new Viewbean(diqimingXiaolin, diqimingXiao, diqimingXiaos, "第二球", "1132894995"));
        linearLayoutsList.add(new Viewbean(diqimingDanlin, diqimingDan, diqimingDans, "第二球", "1132894996"));
        linearLayoutsList.add(new Viewbean(diqimingShuanglin, diqimingShuang, diqimingShuangs, "第二球", "1132894997"));


        dibamingDas.setText(listdata._$1132905008);
        dibamingXiaos.setText(listdata._$1132905009);
        dibamingDans.setText(listdata._$1132905010);
        dibamingShuangs.setText(listdata._$1132905011);
        linearLayoutsList.add(new Viewbean(dibamingDalin, dibamingDa, dibamingDas, "第三球", "1132905008"));
        linearLayoutsList.add(new Viewbean(dibamingXiaolin, dibamingXiao, dibamingXiaos, "第三球", "1132905009"));
        linearLayoutsList.add(new Viewbean(dibamingDanlin, dibamingDan, dibamingDans, "第三球", "1132905010"));
        linearLayoutsList.add(new Viewbean(dibamingShuanglin, dibamingShuang, dibamingShuangs, "第三球", "1132905011"));


        dijiumingDas.setText(listdata._$1132915022);
        dijiumingXiaos.setText(listdata._$1132915023);
        dijiumingDans.setText(listdata._$1132915024);
        dijiumingShuangs.setText(listdata._$1132915025);
        linearLayoutsList.add(new Viewbean(dijiumingDalin, dijiumingDa, dijiumingDas, "第四球", "1132915022"));
        linearLayoutsList.add(new Viewbean(dijiumingXiaolin, dijiumingXiao, dijiumingXiaos, "第四球", "1132915023"));
        linearLayoutsList.add(new Viewbean(dijiumingDanlin, dijiumingDan, dijiumingDans, "第四球", "1132915024"));
        linearLayoutsList.add(new Viewbean(dijiumingShuanglin, dijiumingShuang, dijiumingShuangs, "第四球", "1132915025"));


        dishimingDas.setText(listdata._$1132925036);
        dishimingXiaos.setText(listdata._$1132925037);
        dishimingDans.setText(listdata._$1132925038);
        dishimingShuangs.setText(listdata._$1132925039);
        linearLayoutsList.add(new Viewbean(dishimingDalin, dishimingDa, dishimingDas, "第五球", "1132925036"));
        linearLayoutsList.add(new Viewbean(dishimingXiaolin, dishimingXiao, dishimingXiaos, "第五球", "1132925037"));
        linearLayoutsList.add(new Viewbean(dishimingDanlin, dishimingDan, dishimingDans, "第五球", "1132925038"));
        linearLayoutsList.add(new Viewbean(dishimingShuanglin, dishimingShuang, dishimingShuangs, "第五球", "1132925039"));

//1-5球
        //图文
        guanjuntv1.setText(listdata._$1132884970);
        guanjuntv2.setText(listdata._$1132884971);
        guanjuntv3.setText(listdata._$1132884972);
        guanjuntv4.setText(listdata._$1132884973);
        guanjuntv5.setText(listdata._$1132884974);
        guanjuntv6.setText(listdata._$1132884975);
        guanjuntv7.setText(listdata._$1132884976);
        guanjuntv8.setText(listdata._$1132884977);
        guanjuntv9.setText(listdata._$1132884978);
        guanjuntv10.setText(listdata._$1132884979);
        linearLayoutsList.add(new Viewbean(guanjunivlin1, name0, guanjuntv1, "第一球", "1132884970"));
        linearLayoutsList.add(new Viewbean(guanjunivlin2, name1, guanjuntv2, "第一球", "1132884971"));
        linearLayoutsList.add(new Viewbean(guanjunivlin3, name2, guanjuntv3, "第一球", "1132884972"));
        linearLayoutsList.add(new Viewbean(guanjunivlin4, name3, guanjuntv4, "第一球", "1132884973"));
        linearLayoutsList.add(new Viewbean(guanjunivlin5, name4, guanjuntv5, "第一球", "1132884974"));
        linearLayoutsList.add(new Viewbean(guanjunivlin6, name5, guanjuntv6, "第一球", "1132884975"));
        linearLayoutsList.add(new Viewbean(guanjunivlin7, name6, guanjuntv7, "第一球", "1132884976"));
        linearLayoutsList.add(new Viewbean(guanjunivlin8, name7, guanjuntv8, "第一球", "1132884977"));
        linearLayoutsList.add(new Viewbean(guanjunivlin9, name8, guanjuntv9, "第一球", "1132884978"));
        linearLayoutsList.add(new Viewbean(guanjunivlin10, name9, guanjuntv10, "第一球", "1132884979"));

        yajuntv1.setText(listdata._$1132894984);
        yajuntv2.setText(listdata._$1132894985);
        yajuntv3.setText(listdata._$1132894986);
        yajuntv4.setText(listdata._$1132894987);
        yajuntv5.setText(listdata._$1132894988);
        yajuntv6.setText(listdata._$1132894989);
        yajuntv7.setText(listdata._$1132894990);
        yajuntv8.setText(listdata._$1132894991);
        yajuntv9.setText(listdata._$1132894992);
        yajuntv10.setText(listdata._$1132894993);
        linearLayoutsList.add(new Viewbean(yajunivlin1, name0, yajuntv1, "第二球", "1132894984"));
        linearLayoutsList.add(new Viewbean(yajunivlin2, name1, yajuntv2, "第二球", "1132894985"));
        linearLayoutsList.add(new Viewbean(yajunivlin3, name2, yajuntv3, "第二球", "1132894986"));
        linearLayoutsList.add(new Viewbean(yajunivlin4, name3, yajuntv4, "第二球", "1132894987"));
        linearLayoutsList.add(new Viewbean(yajunivlin5, name4, yajuntv5, "第二球", "1132894988"));
        linearLayoutsList.add(new Viewbean(yajunivlin6, name5, yajuntv6, "第二球", "1132894989"));
        linearLayoutsList.add(new Viewbean(yajunivlin7, name6, yajuntv7, "第二球", "1132894990"));
        linearLayoutsList.add(new Viewbean(yajunivlin8, name7, yajuntv8, "第二球", "1132894991"));
        linearLayoutsList.add(new Viewbean(yajunivlin9, name8, yajuntv9, "第二球", "1132894992"));
        linearLayoutsList.add(new Viewbean(yajunivlin10, name9, yajuntv10, "第二球", "1132894993"));

        disanmingtv1.setText(listdata._$1132904998);
        disanmingtv2.setText(listdata._$1132904999);
        disanmingtv3.setText(listdata._$1132905000);
        disanmingtv4.setText(listdata._$1132905001);
        disanmingtv5.setText(listdata._$1132905002);
        disanmingtv6.setText(listdata._$1132905003);
        disanmingtv7.setText(listdata._$1132905004);
        disanmingtv8.setText(listdata._$1132905005);
        disanmingtv9.setText(listdata._$1132905006);
        disanmingtv10.setText(listdata._$1132905007);
        linearLayoutsList.add(new Viewbean(disanmingivlin1, name0, disanmingtv1, "第三球", "1132904998"));
        linearLayoutsList.add(new Viewbean(disanmingivlin2, name1, disanmingtv2, "第三球", "1132904999"));
        linearLayoutsList.add(new Viewbean(disanmingivlin3, name2, disanmingtv3, "第三球", "1132905000"));
        linearLayoutsList.add(new Viewbean(disanmingivlin4, name3, disanmingtv4, "第三球", "1132905001"));
        linearLayoutsList.add(new Viewbean(disanmingivlin5, name4, disanmingtv5, "第三球", "1132905002"));
        linearLayoutsList.add(new Viewbean(disanmingivlin6, name5, disanmingtv6, "第三球", "1132905003"));
        linearLayoutsList.add(new Viewbean(disanmingivlin7, name6, disanmingtv7, "第三球", "1132905004"));
        linearLayoutsList.add(new Viewbean(disanmingivlin8, name7, disanmingtv8, "第三球", "1132905005"));
        linearLayoutsList.add(new Viewbean(disanmingivlin9, name8, disanmingtv9, "第三球", "1132905006"));
        linearLayoutsList.add(new Viewbean(disanmingivlin10, name9, disanmingtv10, "第三球", "1132905007"));

        disimingtv1.setText(listdata._$1132915012);
        disimingtv2.setText(listdata._$1132915013);
        disimingtv3.setText(listdata._$1132915014);
        disimingtv4.setText(listdata._$1132915015);
        disimingtv5.setText(listdata._$1132915016);
        disimingtv6.setText(listdata._$1132915017);
        disimingtv7.setText(listdata._$1132915018);
        disimingtv8.setText(listdata._$1132915019);
        disimingtv9.setText(listdata._$1132915020);
        disimingtv10.setText(listdata._$1132915021);
        linearLayoutsList.add(new Viewbean(disimingivlin1, name0, disimingtv1, "第四球", "1132915012"));
        linearLayoutsList.add(new Viewbean(disimingivlin2, name1, disimingtv2, "第四球", "1132915013"));
        linearLayoutsList.add(new Viewbean(disimingivlin3, name2, disimingtv3, "第四球", "1132915014"));
        linearLayoutsList.add(new Viewbean(disimingivlin4, name3, disimingtv4, "第四球", "1132915015"));
        linearLayoutsList.add(new Viewbean(disimingivlin5, name4, disimingtv5, "第四球", "1132915016"));
        linearLayoutsList.add(new Viewbean(disimingivlin6, name5, disimingtv6, "第四球", "1132915017"));
        linearLayoutsList.add(new Viewbean(disimingivlin7, name6, disimingtv7, "第四球", "1132915018"));
        linearLayoutsList.add(new Viewbean(disimingivlin8, name7, disimingtv8, "第四球", "1132915019"));
        linearLayoutsList.add(new Viewbean(disimingivlin9, name8, disimingtv9, "第四球", "1132915020"));
        linearLayoutsList.add(new Viewbean(disimingivlin10, name9, disimingtv10, "第四球", "1132915021"));

        diwumingtv1.setText(listdata._$1132925026);
        diwumingtv2.setText(listdata._$1132925027);
        diwumingtv3.setText(listdata._$1132925028);
        diwumingtv4.setText(listdata._$1132925029);
        diwumingtv5.setText(listdata._$1132925030);
        diwumingtv6.setText(listdata._$1132925031);
        diwumingtv7.setText(listdata._$1132925032);
        diwumingtv8.setText(listdata._$1132925033);
        diwumingtv9.setText(listdata._$1132925034);
        diwumingtv10.setText(listdata._$1132925035);
        linearLayoutsList.add(new Viewbean(diwumingivlin1, name0, diwumingtv1, "第五球", "1132925026"));
        linearLayoutsList.add(new Viewbean(diwumingivlin2, name1, diwumingtv2, "第五球", "1132925027"));
        linearLayoutsList.add(new Viewbean(diwumingivlin3, name2, diwumingtv3, "第五球", "1132925028"));
        linearLayoutsList.add(new Viewbean(diwumingivlin4, name3, diwumingtv4, "第五球", "1132925029"));
        linearLayoutsList.add(new Viewbean(diwumingivlin5, name4, diwumingtv5, "第五球", "1132925030"));
        linearLayoutsList.add(new Viewbean(diwumingivlin6, name5, diwumingtv6, "第五球", "1132925031"));
        linearLayoutsList.add(new Viewbean(diwumingivlin7, name6, diwumingtv7, "第五球", "1132925032"));
        linearLayoutsList.add(new Viewbean(diwumingivlin8, name7, diwumingtv8, "第五球", "1132925033"));
        linearLayoutsList.add(new Viewbean(diwumingivlin9, name8, diwumingtv9, "第五球", "1132925034"));
        linearLayoutsList.add(new Viewbean(diwumingivlin10, name9, diwumingtv10, "第五球", "1132925035"));

        qiansanBaozis.setText(listdata._$1132935040);
        qiansanShunzis.setText(listdata._$1132935041);
        qiansanDuizis.setText(listdata._$1132935042);
        qiansanBanshuns.setText(listdata._$1132935043);
        qiansanZalius.setText(listdata._$1132935044);
        linearLayoutsList.add(new Viewbean(qiansanBaozilin, qiansanBaozi, qiansanBaozis, "前三", "1132935040"));
        linearLayoutsList.add(new Viewbean(qiansanShunzilin, qiansanShunzi, qiansanShunzis, "前三", "1132935041"));
        linearLayoutsList.add(new Viewbean(qiansanDuizilin, qiansanDuizi, qiansanDuizis, "前三", "1132935042"));
        linearLayoutsList.add(new Viewbean(qiansanbanshunlin, qiansanBanshun, qiansanBanshuns, "前三", "1132935043"));
        linearLayoutsList.add(new Viewbean(qiansanZaliulin, qiansanZaliu, qiansanZalius, "前三", "1132935044"));

        zhongsanBaozis.setText(listdata._$1132945045);
        zhongsanShunzis.setText(listdata._$1132945046);
        zhongsanDuizis.setText(listdata._$1132945047);
        zhongsanBanshuns.setText(listdata._$1132945048);
        zhongsanZalius.setText(listdata._$1132945049);
        linearLayoutsList.add(new Viewbean(zhongsanbaozilin, zhongsanBaozi, zhongsanBaozis, "中三", "1132945045"));
        linearLayoutsList.add(new Viewbean(zhongsanshunzilin, zhongsanShunzi, zhongsanShunzis, "中三", "1132945046"));
        linearLayoutsList.add(new Viewbean(zhongsanduizilin, zhongsanDuizi, zhongsanDuizis, "中三", "1132945047"));
        linearLayoutsList.add(new Viewbean(zhongsanbanshunlin, zhongsanBanshun, zhongsanBanshuns, "中三", "1132945048"));
        linearLayoutsList.add(new Viewbean(zhongsanZaliulin, zhongsanZaliu, zhongsanZalius, "中三", "1132945049"));

        housanBaozis.setText(listdata._$1132955050);
        housanShunzis.setText(listdata._$1132955051);
        housanDuizis.setText(listdata._$1132955052);
        housanBanshuns.setText(listdata._$1132955053);
        housanZalius.setText(listdata._$1132955054);
        linearLayoutsList.add(new Viewbean(housanbaozilin, housanBaozi, housanBaozis, "后三", "1132955050"));
        linearLayoutsList.add(new Viewbean(housanshunzi, housanShunzi, housanShunzis, "后三", "1132955051"));
        linearLayoutsList.add(new Viewbean(housanduizilin, housanDuizi, housanDuizis, "后三", "1132955052"));
        linearLayoutsList.add(new Viewbean(housanbanshunlin, housanBanshun, housanBanshuns, "后三", "1132955053"));
        linearLayoutsList.add(new Viewbean(housanZaliulin, housanZaliu, housanZalius, "后三", "1132955054"));

        textcolorlist();

    }

    //设置字体颜色和背景色
    private void textcolorlist() {
        for (int i = 0; i < linearLayoutsList.size(); i++) {
            final int q = i;

            linearLayoutsList.get(i).linearLayout.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    if (thecrownIndex.contains(q + "")) {
                        thecrownIndex.remove(q + "");
                        linearLayoutsList.get(q).linearLayout.setBackgroundResource(R.drawable.betting_backgroud);
                        if (null != linearLayoutsList.get(q).textView) {
                            linearLayoutsList.get(q).textView.setTextColor(getContext().getResources().getColor(R.color.blank));
                        }
                        linearLayoutsList.get(q).textViews.setTextColor(getContext().getResources().getColor(R.color.text_color2));
                    } else {
                        linearLayoutsList.get(q).linearLayout.setBackgroundResource(R.drawable.unxiazhu);
                        linearLayoutsList.get(q).textViews.setTextColor(getContext().getResources().getColor(R.color.settingbg));
                        if (null != linearLayoutsList.get(q).textView) {
                            if (flag) {
                                linearLayoutsList.get(q).textView.setTextColor(getContext().getResources().getColor(R.color.settingbg));
                            } else {
                                linearLayoutsList.get(q).textView.setTextColor(getContext().getResources().getColor(R.color.blank));
                            }
                        }
                        thecrownIndex.add(q + "");
                    }
                    yixuanzhong.setText(thecrownIndex.size() + "");

                }
            });

        }

    }

    /**
     * 时时彩布局及图片处理
     */
    private void shishicaitupianziyuan() {
        diliumingtitle.setText("第一球");
        diqimingtitle.setText("第二球");
        dibamingtitle.setText("第三球");
        dijiumingtitle.setText("第四球");
        dishimingtitle.setText("第五球");
        qianwuming.setVisibility(View.GONE);
        //////////////////////////////////////
        includ3Guanjuntittle.setText("第一球");
        includ3Yajuntittle.setText("第二球");
        includ3Disanmingtittle.setText("第三球");
        includ3Disimingtittle.setText("第四球");
        includ3Diwumingtittle.setText("第五球");
        Glide.with(getContext()).load(img1[9]).into(guanjuniv1);
        Glide.with(getContext()).load(img1[0]).into(guanjuniv2);
        Glide.with(getContext()).load(img1[1]).into(guanjuniv3);
        Glide.with(getContext()).load(img1[2]).into(guanjuniv4);
        Glide.with(getContext()).load(img1[3]).into(guanjuniv5);
        Glide.with(getContext()).load(img1[4]).into(guanjuniv6);
        Glide.with(getContext()).load(img1[5]).into(guanjuniv7);
        Glide.with(getContext()).load(img1[6]).into(guanjuniv8);
        Glide.with(getContext()).load(img1[7]).into(guanjuniv9);
        Glide.with(getContext()).load(img1[8]).into(guanjuniv10);
        Glide.with(getContext()).load(img1[9]).into(yajuniv1);
        Glide.with(getContext()).load(img1[0]).into(yajuniv2);
        Glide.with(getContext()).load(img1[1]).into(yajuniv3);
        Glide.with(getContext()).load(img1[2]).into(yajuniv4);
        Glide.with(getContext()).load(img1[3]).into(yajuniv5);
        Glide.with(getContext()).load(img1[4]).into(yajuniv6);
        Glide.with(getContext()).load(img1[5]).into(yajuniv7);
        Glide.with(getContext()).load(img1[6]).into(yajuniv8);
        Glide.with(getContext()).load(img1[7]).into(yajuniv9);
        Glide.with(getContext()).load(img1[8]).into(yajuniv10);
        Glide.with(getContext()).load(img1[9]).into(disanmingiv1);
        Glide.with(getContext()).load(img1[0]).into(disanmingiv2);
        Glide.with(getContext()).load(img1[1]).into(disanmingiv3);
        Glide.with(getContext()).load(img1[2]).into(disanmingiv4);
        Glide.with(getContext()).load(img1[3]).into(disanmingiv5);
        Glide.with(getContext()).load(img1[4]).into(disanmingiv6);
        Glide.with(getContext()).load(img1[5]).into(disanmingiv7);
        Glide.with(getContext()).load(img1[6]).into(disanmingiv8);
        Glide.with(getContext()).load(img1[7]).into(disanmingiv9);
        Glide.with(getContext()).load(img1[8]).into(disanmingiv10);
        Glide.with(getContext()).load(img1[9]).into(disimingiv1);
        Glide.with(getContext()).load(img1[0]).into(disimingiv2);
        Glide.with(getContext()).load(img1[1]).into(disimingiv3);
        Glide.with(getContext()).load(img1[2]).into(disimingiv4);
        Glide.with(getContext()).load(img1[3]).into(disimingiv5);
        Glide.with(getContext()).load(img1[4]).into(disimingiv6);
        Glide.with(getContext()).load(img1[5]).into(disimingiv7);
        Glide.with(getContext()).load(img1[6]).into(disimingiv8);
        Glide.with(getContext()).load(img1[7]).into(disimingiv9);
        Glide.with(getContext()).load(img1[8]).into(disimingiv10);
        Glide.with(getContext()).load(img1[9]).into(diwumingiv1);
        Glide.with(getContext()).load(img1[0]).into(diwumingiv2);
        Glide.with(getContext()).load(img1[1]).into(diwumingiv3);
        Glide.with(getContext()).load(img1[2]).into(diwumingiv4);
        Glide.with(getContext()).load(img1[3]).into(diwumingiv5);
        Glide.with(getContext()).load(img1[4]).into(diwumingiv6);
        Glide.with(getContext()).load(img1[5]).into(diwumingiv7);
        Glide.with(getContext()).load(img1[6]).into(diwumingiv8);
        Glide.with(getContext()).load(img1[7]).into(diwumingiv9);
        Glide.with(getContext()).load(img1[8]).into(diwumingiv10);
    }

    /**
     * 关闭软键盘
     */
    private void closeKeyBoard() {
        InputMethodManager imm = (InputMethodManager) touzhued.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
        if (imm.isActive()) {
            imm.hideSoftInputFromWindow(touzhued.getApplicationWindowToken(), 0);

        }
    }

    @OnClick({R.id.one, R.id.two, R.id.three, R.id.fore, R.id.qianzhonghou, R.id.chongzhibt})
    public void onViewClicked(View view) {
        Drawable img = one.getResources().getDrawable(R.mipmap.whitedots);
// 调用setCompoundDrawables时，必须调用Drawable.setBounds()方法,否则图片不显示
        img.setBounds(0, 0, img.getMinimumWidth(), img.getMinimumHeight());
        switch (view.getId()) {
            case R.id.chongzhibt:
                Toast.makeText(getContext(), "重置", Toast.LENGTH_SHORT).show();
                for (Viewbean q : linearLayoutsList) {
                    q.linearLayout.setBackgroundResource(R.drawable.betting_backgroud);
                    if (null != q.textView) {
                        q.textView.setTextColor(getContext().getResources().getColor(R.color.blank));
                    }
                    q.textViews.setTextColor(getContext().getResources().getColor(R.color.text_color));
                    thecrownIndex.remove(q + "");
                }
                thecrownIndex.clear();
                yixuanzhong.setText(thecrownIndex.size() + "");
                break;
            case R.id.one:
                flag = true;
                btsetcolor();
                one.setCompoundDrawables(img, null, null, null);
                one.setBackgroundColor(getResources().getColor(R.color.text_color2));
                one.setTextColor(getContext().getResources().getColor(R.color.settingbg));
                includGuanyaheItem.setVisibility(View.VISIBLE);
                includ1.setVisibility(View.VISIBLE);
                includ2.setVisibility(View.GONE);
                includ3.setVisibility(View.GONE);
                includqiangzhonghou.setVisibility(View.GONE);
                break;
            case R.id.two:
                btsetcolor();
                two.setCompoundDrawables(img, null, null, null);
                two.setBackgroundColor(getResources().getColor(R.color.text_color2));
                two.setTextColor(getContext().getResources().getColor(R.color.settingbg));
                if ("66".equals(gameid)) {
                    includGuanyaheItem.setVisibility(View.VISIBLE);
                    includ2.setVisibility(View.GONE);
                    hunheLin.setVisibility(View.VISIBLE);
                    guanyalonghuhe.setVisibility(View.VISIBLE);
                } else {
                    if ("80".equals(gameid) || "50".equals(gameid) || "82".equals(gameid) || "99".equals(gameid)) {
                        includGuanyaheItem.setVisibility(View.VISIBLE);
                    }
                    includ1.setVisibility(View.GONE);
                    includ2.setVisibility(View.VISIBLE);
                    includ3.setVisibility(View.GONE);
                }
                break;
            case R.id.three:
                flag = false;
                btsetcolor();
                three.setCompoundDrawables(img, null, null, null);
                three.setBackgroundColor(getResources().getColor(R.color.text_color2));
                three.setTextColor(getContext().getResources().getColor(R.color.settingbg));
                includGuanyaheItem.setVisibility(View.GONE);
                includ1.setVisibility(View.GONE);
                includ2.setVisibility(View.GONE);
                includ3.setVisibility(View.VISIBLE);
                includqiangzhonghou.setVisibility(View.GONE);
                break;
            case R.id.fore:
                btsetcolor();
                fore.setBackgroundColor(getResources().getColor(R.color.text_color2));
                fore.setCompoundDrawables(img, null, null, null);
                fore.setTextColor(getContext().getResources().getColor(R.color.settingbg));
                includGuanyaheItem.setVisibility(View.GONE);
                includ1.setVisibility(View.GONE);
                includ2.setVisibility(View.GONE);
                includ3.setVisibility(View.GONE);
                break;
            case R.id.fiv:
                btsetcolor();
                fiv.setCompoundDrawables(img, null, null, null);
                fiv.setBackgroundColor(getResources().getColor(R.color.text_color2));
                fiv.setTextColor(getContext().getResources().getColor(R.color.settingbg));
                includGuanyaheItem.setVisibility(View.GONE);
                includ1.setVisibility(View.GONE);
                includ2.setVisibility(View.GONE);
                includ3.setVisibility(View.GONE);
                break;
            case R.id.qianzhonghou:
                btsetcolor();
                flag = true;
                qianzhonghou.setCompoundDrawables(img, null, null, null);
                qianzhonghou.setBackgroundColor(getResources().getColor(R.color.text_color2));
                qianzhonghou.setTextColor(getContext().getResources().getColor(R.color.settingbg));
                includGuanyaheItem.setVisibility(View.GONE);
                includ1.setVisibility(View.GONE);
                includ2.setVisibility(View.GONE);
                includ3.setVisibility(View.GONE);
                includqiangzhonghou.setVisibility(View.VISIBLE);
                break;
        }
    }

    private void btsetcolor() {
        one.setBackgroundColor(getResources().getColor(R.color.gamebackground));
        two.setBackgroundColor(getResources().getColor(R.color.gamebackground));
        three.setBackgroundColor(getResources().getColor(R.color.gamebackground));
        fore.setBackgroundColor(getResources().getColor(R.color.gamebackground));
        fiv.setBackgroundColor(getResources().getColor(R.color.gamebackground));
        qianzhonghou.setBackgroundColor(getResources().getColor(R.color.gamebackground));


        one.setTextColor(getResources().getColor(R.color.black));
        two.setTextColor(getResources().getColor(R.color.black));
        three.setTextColor(getResources().getColor(R.color.black));
        fore.setTextColor(getResources().getColor(R.color.black));
        fiv.setTextColor(getResources().getColor(R.color.black));
        qianzhonghou.setTextColor(getResources().getColor(R.color.black));

        Drawable img = one.getResources().getDrawable(R.mipmap.graydots);
// 调用setCompoundDrawables时，必须调用Drawable.setBounds()方法,否则图片不显示
        img.setBounds(0, 0, img.getMinimumWidth(), img.getMinimumHeight());
        one.setCompoundDrawables(img, null, null, null);
        two.setCompoundDrawables(img, null, null, null);
        three.setCompoundDrawables(img, null, null, null);
        fore.setCompoundDrawables(img, null, null, null);
        fiv.setCompoundDrawables(img, null, null, null);
        qianzhonghou.setCompoundDrawables(img, null, null, null);
    }

    public void moneychange(ResMoney resMoney) {
        tvmoney.setText(resMoney.data.balance + "");
        Info.user.money = resMoney.data.balance + "";
    }

    /**
     * 下注成功
     */
    public void betsuccses() {
        Toast.makeText(getContext(), "下注成功", Toast.LENGTH_SHORT).show();
        for (Viewbean q : linearLayoutsList) {
            q.linearLayout.setBackgroundResource(R.drawable.betting_backgroud);
            if (null != q.textView) {
                q.textView.setTextColor(getContext().getResources().getColor(R.color.blank));
            }
            q.textViews.setTextColor(getContext().getResources().getColor(R.color.text_color));
            thecrownIndex.remove(q + "");
        }
        thecrownIndex.clear();
        yixuanzhong.setText(thecrownIndex.size() + "");
        keybord.setVisibility(View.GONE);
        //请求余额刷新
        if (null != Info.user) {
            mPresenter.getmoney(Info.user.token);
        }
//        touzhued.setText("");
    }

    //token过期
    public void restartlogin() {
        Info.user = null;
        SpUtils.clearUser(getContext());
        ((BaseActivity) getActivity()).startLogin();
    }

    public void openfail() {
        ssctitle.setVisibility(View.INVISIBLE);
    }

    /**
     * 快乐分分彩
     *
     * @param listdata
     */
    public void setdatakuailefenfencai(Reskuailefenfencai.DataBean listdata) {
        guanyalonghuhe.setVisibility(View.VISIBLE);
        guanyahetitle.setText("总和、龙虎");
        guanyadas.setText(listdata._$8033375502);
        guanyaxiaos.setText(listdata._$8033375503);
        guanyadans.setText(listdata._$8033375504);
        guanyashuangs.setText(listdata._$8033375505);
        linearLayoutsList.add(new Viewbean(guanyadalin, guanyada, guanyadas, "总和、龙虎", "8033375502"));
        linearLayoutsList.add(new Viewbean(guanyaxiaolin, guanyaxiao, guanyaxiaos, "总和、龙虎", "8033375503"));
        linearLayoutsList.add(new Viewbean(guanyadanlin, guanyadan, guanyadans, "总和、龙虎", "8033375504"));
        linearLayoutsList.add(new Viewbean(guanyashuanglin, guanyashuang, guanyashuangs, "总和、龙虎", "8033375505"));

        guanyalongs.setText(listdata._$8033375506);
        guanyahus.setText(listdata._$8033375507);
        guanyahes.setText(listdata._$8033375508);
        linearLayoutsList.add(new Viewbean(guanyalonglin, guanyalong, guanyalongs, "总和、龙虎", "8033375506"));
        linearLayoutsList.add(new Viewbean(guanyahulin, guanyahu, guanyahus, "总和、龙虎", "8033375507"));
        linearLayoutsList.add(new Viewbean(guanyahelin, guanyahe, guanyahes, "总和、龙虎", "8033375508"));

        diliumingDas.setText(listdata._$8033385519);
        diliumingXiaos.setText(listdata._$8033385520);
        diliumingDans.setText(listdata._$8033385521);
        diliumingShuangs.setText(listdata._$8033385522);
        linearLayoutsList.add(new Viewbean(diliumingdalin, diliumingDa, diliumingDas, "第一球", "8033385519"));
        linearLayoutsList.add(new Viewbean(diliumingXiaolin, diliumingXiao, diliumingXiaos, "第一球", "8033385520"));
        linearLayoutsList.add(new Viewbean(diliumingDanlin, diliumingDan, diliumingDans, "第一球", "8033385521"));
        linearLayoutsList.add(new Viewbean(diliumingShuanglin, diliumingShuang, diliumingShuangs, "第一球", "8033385522"));

        diqimingDas.setText(listdata._$8033395533);
        diqimingXiaos.setText(listdata._$8033395534);
        diqimingDans.setText(listdata._$8033395535);
        diqimingShuangs.setText(listdata._$8033395536);
        linearLayoutsList.add(new Viewbean(diqimingDalin, diqimingDa, diqimingDas, "第二球", "8033395533"));
        linearLayoutsList.add(new Viewbean(diqimingXiaolin, diqimingXiao, diqimingXiaos, "第二球", "8033395534"));
        linearLayoutsList.add(new Viewbean(diqimingDanlin, diqimingDan, diqimingDans, "第二球", "8033395535"));
        linearLayoutsList.add(new Viewbean(diqimingShuanglin, diqimingShuang, diqimingShuangs, "第二球", "8033395536"));


        dibamingDas.setText(listdata._$8033405547);
        dibamingXiaos.setText(listdata._$8033405548);
        dibamingDans.setText(listdata._$8033405549);
        dibamingShuangs.setText(listdata._$8033405550);
        linearLayoutsList.add(new Viewbean(dibamingDalin, dibamingDa, dibamingDas, "第三球", "8033405547"));
        linearLayoutsList.add(new Viewbean(dibamingXiaolin, dibamingXiao, dibamingXiaos, "第三球", "8033405548"));
        linearLayoutsList.add(new Viewbean(dibamingDanlin, dibamingDan, dibamingDans, "第三球", "8033405549"));
        linearLayoutsList.add(new Viewbean(dibamingShuanglin, dibamingShuang, dibamingShuangs, "第三球", "8033405550"));


        dijiumingDas.setText(listdata._$8033415561);
        dijiumingXiaos.setText(listdata._$8033415562);
        dijiumingDans.setText(listdata._$8033415563);
        dijiumingShuangs.setText(listdata._$8033415564);
        linearLayoutsList.add(new Viewbean(dijiumingDalin, dijiumingDa, dijiumingDas, "第四球", "8033415561"));
        linearLayoutsList.add(new Viewbean(dijiumingXiaolin, dijiumingXiao, dijiumingXiaos, "第四球", "8033415562"));
        linearLayoutsList.add(new Viewbean(dijiumingDanlin, dijiumingDan, dijiumingDans, "第四球", "8033415563"));
        linearLayoutsList.add(new Viewbean(dijiumingShuanglin, dijiumingShuang, dijiumingShuangs, "第四球", "8033415564"));


        dishimingDas.setText(listdata._$8033425575);
        dishimingXiaos.setText(listdata._$8033425576);
        dishimingDans.setText(listdata._$8033425577);
        dishimingShuangs.setText(listdata._$8033425578);
        linearLayoutsList.add(new Viewbean(dishimingDalin, dishimingDa, dishimingDas, "第五球", "8033425575"));
        linearLayoutsList.add(new Viewbean(dishimingXiaolin, dishimingXiao, dishimingXiaos, "第五球", "8033425576"));
        linearLayoutsList.add(new Viewbean(dishimingDanlin, dishimingDan, dishimingDans, "第五球", "8033425577"));
        linearLayoutsList.add(new Viewbean(dishimingShuanglin, dishimingShuang, dishimingShuangs, "第五球", "8033425578"));

//1-5球
        //图文
        guanjuntv1.setText(listdata._$8033385509);
        guanjuntv2.setText(listdata._$8033385510);
        guanjuntv3.setText(listdata._$8033385511);
        guanjuntv4.setText(listdata._$8033385512);
        guanjuntv5.setText(listdata._$8033385513);
        guanjuntv6.setText(listdata._$8033385514);
        guanjuntv7.setText(listdata._$8033385515);
        guanjuntv8.setText(listdata._$8033385516);
        guanjuntv9.setText(listdata._$8033385517);
        guanjuntv10.setText(listdata._$8033385518);
        linearLayoutsList.add(new Viewbean(guanjunivlin1, name0, guanjuntv1, "第一球", "8033385509"));
        linearLayoutsList.add(new Viewbean(guanjunivlin2, name1, guanjuntv2, "第一球", "8033385510"));
        linearLayoutsList.add(new Viewbean(guanjunivlin3, name2, guanjuntv3, "第一球", "8033385511"));
        linearLayoutsList.add(new Viewbean(guanjunivlin4, name3, guanjuntv4, "第一球", "8033385512"));
        linearLayoutsList.add(new Viewbean(guanjunivlin5, name4, guanjuntv5, "第一球", "8033385513"));
        linearLayoutsList.add(new Viewbean(guanjunivlin6, name5, guanjuntv6, "第一球", "8033385514"));
        linearLayoutsList.add(new Viewbean(guanjunivlin7, name6, guanjuntv7, "第一球", "8033385515"));
        linearLayoutsList.add(new Viewbean(guanjunivlin8, name7, guanjuntv8, "第一球", "8033385516"));
        linearLayoutsList.add(new Viewbean(guanjunivlin9, name8, guanjuntv9, "第一球", "8033385517"));
        linearLayoutsList.add(new Viewbean(guanjunivlin10, name9, guanjuntv10, "第一球", "8033385518"));

        yajuntv1.setText(listdata._$8033395523);
        yajuntv2.setText(listdata._$8033395524);
        yajuntv3.setText(listdata._$8033395525);
        yajuntv4.setText(listdata._$8033395526);
        yajuntv5.setText(listdata._$8033395527);
        yajuntv6.setText(listdata._$8033395528);
        yajuntv7.setText(listdata._$8033395529);
        yajuntv8.setText(listdata._$8033395530);
        yajuntv9.setText(listdata._$8033395531);
        yajuntv10.setText(listdata._$8033395532);
        linearLayoutsList.add(new Viewbean(yajunivlin1, name0, yajuntv1, "第二球", "8033395523"));
        linearLayoutsList.add(new Viewbean(yajunivlin2, name1, yajuntv2, "第二球", "8033395524"));
        linearLayoutsList.add(new Viewbean(yajunivlin3, name2, yajuntv3, "第二球", "8033395525"));
        linearLayoutsList.add(new Viewbean(yajunivlin4, name3, yajuntv4, "第二球", "8033395526"));
        linearLayoutsList.add(new Viewbean(yajunivlin5, name4, yajuntv5, "第二球", "8033395527"));
        linearLayoutsList.add(new Viewbean(yajunivlin6, name5, yajuntv6, "第二球", "8033395528"));
        linearLayoutsList.add(new Viewbean(yajunivlin7, name6, yajuntv7, "第二球", "8033395529"));
        linearLayoutsList.add(new Viewbean(yajunivlin8, name7, yajuntv8, "第二球", "8033395530"));
        linearLayoutsList.add(new Viewbean(yajunivlin9, name8, yajuntv9, "第二球", "8033395531"));
        linearLayoutsList.add(new Viewbean(yajunivlin10, name9, yajuntv10, "第二球", "8033395532"));

        disanmingtv1.setText(listdata._$8033405537);
        disanmingtv2.setText(listdata._$8033405538);
        disanmingtv3.setText(listdata._$8033405539);
        disanmingtv4.setText(listdata._$8033405540);
        disanmingtv5.setText(listdata._$8033405541);
        disanmingtv6.setText(listdata._$8033405542);
        disanmingtv7.setText(listdata._$8033405543);
        disanmingtv8.setText(listdata._$8033405544);
        disanmingtv9.setText(listdata._$8033405545);
        disanmingtv10.setText(listdata._$8033405546);
        linearLayoutsList.add(new Viewbean(disanmingivlin1, name0, disanmingtv1, "第三球", "8033405537"));
        linearLayoutsList.add(new Viewbean(disanmingivlin2, name1, disanmingtv2, "第三球", "8033405538"));
        linearLayoutsList.add(new Viewbean(disanmingivlin3, name2, disanmingtv3, "第三球", "8033405539"));
        linearLayoutsList.add(new Viewbean(disanmingivlin4, name3, disanmingtv4, "第三球", "8033405540"));
        linearLayoutsList.add(new Viewbean(disanmingivlin5, name4, disanmingtv5, "第三球", "8033405541"));
        linearLayoutsList.add(new Viewbean(disanmingivlin6, name5, disanmingtv6, "第三球", "8033405542"));
        linearLayoutsList.add(new Viewbean(disanmingivlin7, name6, disanmingtv7, "第三球", "8033405543"));
        linearLayoutsList.add(new Viewbean(disanmingivlin8, name7, disanmingtv8, "第三球", "8033405544"));
        linearLayoutsList.add(new Viewbean(disanmingivlin9, name8, disanmingtv9, "第三球", "8033405545"));
        linearLayoutsList.add(new Viewbean(disanmingivlin10, name9, disanmingtv10, "第三球", "8033405546"));

        disimingtv1.setText(listdata._$8033415551);
        disimingtv2.setText(listdata._$8033415552);
        disimingtv3.setText(listdata._$8033415553);
        disimingtv4.setText(listdata._$8033415554);
        disimingtv5.setText(listdata._$8033415555);
        disimingtv6.setText(listdata._$8033415556);
        disimingtv7.setText(listdata._$8033415557);
        disimingtv8.setText(listdata._$8033415558);
        disimingtv9.setText(listdata._$8033415559);
        disimingtv10.setText(listdata._$8033415560);
        linearLayoutsList.add(new Viewbean(disimingivlin1, name0, disimingtv1, "第四球", "8033415551"));
        linearLayoutsList.add(new Viewbean(disimingivlin2, name1, disimingtv2, "第四球", "8033415552"));
        linearLayoutsList.add(new Viewbean(disimingivlin3, name2, disimingtv3, "第四球", "8033415553"));
        linearLayoutsList.add(new Viewbean(disimingivlin4, name3, disimingtv4, "第四球", "8033415554"));
        linearLayoutsList.add(new Viewbean(disimingivlin5, name4, disimingtv5, "第四球", "8033415555"));
        linearLayoutsList.add(new Viewbean(disimingivlin6, name5, disimingtv6, "第四球", "8033415556"));
        linearLayoutsList.add(new Viewbean(disimingivlin7, name6, disimingtv7, "第四球", "8033415557"));
        linearLayoutsList.add(new Viewbean(disimingivlin8, name7, disimingtv8, "第四球", "8033415558"));
        linearLayoutsList.add(new Viewbean(disimingivlin9, name8, disimingtv9, "第四球", "8033415559"));
        linearLayoutsList.add(new Viewbean(disimingivlin10, name9, disimingtv10, "第四球", "8033415560"));

        diwumingtv1.setText(listdata._$8033425565);
        diwumingtv2.setText(listdata._$8033425566);
        diwumingtv3.setText(listdata._$8033425567);
        diwumingtv4.setText(listdata._$8033425568);
        diwumingtv5.setText(listdata._$8033425569);
        diwumingtv6.setText(listdata._$8033425570);
        diwumingtv7.setText(listdata._$8033425571);
        diwumingtv8.setText(listdata._$8033425572);
        diwumingtv9.setText(listdata._$8033425573);
        diwumingtv10.setText(listdata._$8033425574);
        linearLayoutsList.add(new Viewbean(diwumingivlin1, name0, diwumingtv1, "第五球", "8033425565"));
        linearLayoutsList.add(new Viewbean(diwumingivlin2, name1, diwumingtv2, "第五球", "8033425566"));
        linearLayoutsList.add(new Viewbean(diwumingivlin3, name2, diwumingtv3, "第五球", "8033425567"));
        linearLayoutsList.add(new Viewbean(diwumingivlin4, name3, diwumingtv4, "第五球", "8033425568"));
        linearLayoutsList.add(new Viewbean(diwumingivlin5, name4, diwumingtv5, "第五球", "8033425569"));
        linearLayoutsList.add(new Viewbean(diwumingivlin6, name5, diwumingtv6, "第五球", "8033425570"));
        linearLayoutsList.add(new Viewbean(diwumingivlin7, name6, diwumingtv7, "第五球", "8033425571"));
        linearLayoutsList.add(new Viewbean(diwumingivlin8, name7, diwumingtv8, "第五球", "8033425572"));
        linearLayoutsList.add(new Viewbean(diwumingivlin9, name8, diwumingtv9, "第五球", "8033425573"));
        linearLayoutsList.add(new Viewbean(diwumingivlin10, name9, diwumingtv10, "第五球", "8033425574"));

        qiansanBaozis.setText(listdata._$8033435579);
        qiansanShunzis.setText(listdata._$8033435580);
        qiansanDuizis.setText(listdata._$8033435581);
        qiansanBanshuns.setText(listdata._$8033435582);
        qiansanZalius.setText(listdata._$8033435583);
        linearLayoutsList.add(new Viewbean(qiansanBaozilin, qiansanBaozi, qiansanBaozis, "前三", "8033435579"));
        linearLayoutsList.add(new Viewbean(qiansanShunzilin, qiansanShunzi, qiansanShunzis, "前三", "8033435580"));
        linearLayoutsList.add(new Viewbean(qiansanDuizilin, qiansanDuizi, qiansanDuizis, "前三", "8033435581"));
        linearLayoutsList.add(new Viewbean(qiansanbanshunlin, qiansanBanshun, qiansanBanshuns, "前三", "8033435582"));
        linearLayoutsList.add(new Viewbean(qiansanZaliulin, qiansanZaliu, qiansanZalius, "前三", "8033435583"));

        zhongsanBaozis.setText(listdata._$8033445584);
        zhongsanShunzis.setText(listdata._$8033445585);
        zhongsanDuizis.setText(listdata._$8033445586);
        zhongsanBanshuns.setText(listdata._$8033445587);
        zhongsanZalius.setText(listdata._$8033445588);
        linearLayoutsList.add(new Viewbean(zhongsanbaozilin, zhongsanBaozi, zhongsanBaozis, "中三", "8033445584"));
        linearLayoutsList.add(new Viewbean(zhongsanshunzilin, zhongsanShunzi, zhongsanShunzis, "中三", "8033445585"));
        linearLayoutsList.add(new Viewbean(zhongsanduizilin, zhongsanDuizi, zhongsanDuizis, "中三", "8033445586"));
        linearLayoutsList.add(new Viewbean(zhongsanbanshunlin, zhongsanBanshun, zhongsanBanshuns, "中三", "8033445587"));
        linearLayoutsList.add(new Viewbean(zhongsanZaliulin, zhongsanZaliu, zhongsanZalius, "中三", "8033445588"));

        housanBaozis.setText(listdata._$8033455589);
        housanShunzis.setText(listdata._$8033455590);
        housanDuizis.setText(listdata._$8033455591);
        housanBanshuns.setText(listdata._$8033455592);
        housanZalius.setText(listdata._$8033455593);
        linearLayoutsList.add(new Viewbean(housanbaozilin, housanBaozi, housanBaozis, "后三", "8033455589"));
        linearLayoutsList.add(new Viewbean(housanshunzi, housanShunzi, housanShunzis, "后三", "8033455590"));
        linearLayoutsList.add(new Viewbean(housanduizilin, housanDuizi, housanDuizis, "后三", "8033455591"));
        linearLayoutsList.add(new Viewbean(housanbanshunlin, housanBanshun, housanBanshuns, "后三", "8033455592"));
        linearLayoutsList.add(new Viewbean(housanZaliulin, housanZaliu, housanZalius, "后三", "8033455593"));

        textcolorlist();

    }

    /**
     * 快乐分分彩
     *
     * @param listdata
     */
    public void setsanfenssc(Ressanfenssc.DataBean listdata) {
        guanyalonghuhe.setVisibility(View.VISIBLE);
        guanyahetitle.setText("总和、龙虎");
        guanyadas.setText(listdata._$9023685936);
        guanyaxiaos.setText(listdata._$9023685937);
        guanyadans.setText(listdata._$9023685938);
        guanyashuangs.setText(listdata._$9023685939);
        linearLayoutsList.add(new Viewbean(guanyadalin, guanyada, guanyadas, "总和、龙虎", "9023685936"));
        linearLayoutsList.add(new Viewbean(guanyaxiaolin, guanyaxiao, guanyaxiaos, "总和、龙虎", "9023685937"));
        linearLayoutsList.add(new Viewbean(guanyadanlin, guanyadan, guanyadans, "总和、龙虎", "9023685938"));
        linearLayoutsList.add(new Viewbean(guanyashuanglin, guanyashuang, guanyashuangs, "总和、龙虎", "9023685939"));

        guanyalongs.setText(listdata._$9023685940);
        guanyahus.setText(listdata._$9023685941);
        guanyahes.setText(listdata._$9023685942);
        linearLayoutsList.add(new Viewbean(guanyalonglin, guanyalong, guanyalongs, "总和、龙虎", "9023685940"));
        linearLayoutsList.add(new Viewbean(guanyahulin, guanyahu, guanyahus, "总和、龙虎", "9023685941"));
        linearLayoutsList.add(new Viewbean(guanyahelin, guanyahe, guanyahes, "总和、龙虎", "9023685942"));

        diliumingDas.setText(listdata._$9023695953);
        diliumingXiaos.setText(listdata._$9023695954);
        diliumingDans.setText(listdata._$9023695955);
        diliumingShuangs.setText(listdata._$9023695956);
        linearLayoutsList.add(new Viewbean(diliumingdalin, diliumingDa, diliumingDas, "第一球", "9023695953"));
        linearLayoutsList.add(new Viewbean(diliumingXiaolin, diliumingXiao, diliumingXiaos, "第一球", "9023695954"));
        linearLayoutsList.add(new Viewbean(diliumingDanlin, diliumingDan, diliumingDans, "第一球", "9023695955"));
        linearLayoutsList.add(new Viewbean(diliumingShuanglin, diliumingShuang, diliumingShuangs, "第一球", "9023695956"));

        diqimingDas.setText(listdata._$9023705967);
        diqimingXiaos.setText(listdata._$9023705968);
        diqimingDans.setText(listdata._$9023705969);
        diqimingShuangs.setText(listdata._$9023705970);
        linearLayoutsList.add(new Viewbean(diqimingDalin, diqimingDa, diqimingDas, "第二球", "9023705967"));
        linearLayoutsList.add(new Viewbean(diqimingXiaolin, diqimingXiao, diqimingXiaos, "第二球", "9023705968"));
        linearLayoutsList.add(new Viewbean(diqimingDanlin, diqimingDan, diqimingDans, "第二球", "9023705969"));
        linearLayoutsList.add(new Viewbean(diqimingShuanglin, diqimingShuang, diqimingShuangs, "第二球", "9023705970"));


        dibamingDas.setText(listdata._$9023715981);
        dibamingXiaos.setText(listdata._$9023715982);
        dibamingDans.setText(listdata._$9023715983);
        dibamingShuangs.setText(listdata._$9023715984);
        linearLayoutsList.add(new Viewbean(dibamingDalin, dibamingDa, dibamingDas, "第三球", "9023715981"));
        linearLayoutsList.add(new Viewbean(dibamingXiaolin, dibamingXiao, dibamingXiaos, "第三球", "9023715982"));
        linearLayoutsList.add(new Viewbean(dibamingDanlin, dibamingDan, dibamingDans, "第三球", "9023715983"));
        linearLayoutsList.add(new Viewbean(dibamingShuanglin, dibamingShuang, dibamingShuangs, "第三球", "9023715984"));


        dijiumingDas.setText(listdata._$9023725995);
        dijiumingXiaos.setText(listdata._$9023725996);
        dijiumingDans.setText(listdata._$9023725997);
        dijiumingShuangs.setText(listdata._$9023725998);
        linearLayoutsList.add(new Viewbean(dijiumingDalin, dijiumingDa, dijiumingDas, "第四球", "9023725995"));
        linearLayoutsList.add(new Viewbean(dijiumingXiaolin, dijiumingXiao, dijiumingXiaos, "第四球", "9023725996"));
        linearLayoutsList.add(new Viewbean(dijiumingDanlin, dijiumingDan, dijiumingDans, "第四球", "9023725997"));
        linearLayoutsList.add(new Viewbean(dijiumingShuanglin, dijiumingShuang, dijiumingShuangs, "第四球", "9023725998"));


        dishimingDas.setText(listdata._$9023736009);
        dishimingXiaos.setText(listdata._$9023736010);
        dishimingDans.setText(listdata._$9023736011);
        dishimingShuangs.setText(listdata._$9023736012);
        linearLayoutsList.add(new Viewbean(dishimingDalin, dishimingDa, dishimingDas, "第五球", "9023736009"));
        linearLayoutsList.add(new Viewbean(dishimingXiaolin, dishimingXiao, dishimingXiaos, "第五球", "9023736010"));
        linearLayoutsList.add(new Viewbean(dishimingDanlin, dishimingDan, dishimingDans, "第五球", "9023736011"));
        linearLayoutsList.add(new Viewbean(dishimingShuanglin, dishimingShuang, dishimingShuangs, "第五球", "9023736012"));

//1-5球
        //图文
        guanjuntv1.setText(listdata._$9023695943);
        guanjuntv2.setText(listdata._$9023695944);
        guanjuntv3.setText(listdata._$9023695945);
        guanjuntv4.setText(listdata._$9023695946);
        guanjuntv5.setText(listdata._$9023695947);
        guanjuntv6.setText(listdata._$9023695948);
        guanjuntv7.setText(listdata._$9023695949);
        guanjuntv8.setText(listdata._$9023695950);
        guanjuntv9.setText(listdata._$9023695951);
        guanjuntv10.setText(listdata._$9023695952);
        linearLayoutsList.add(new Viewbean(guanjunivlin1, name0, guanjuntv1, "第一球", "9023695943"));
        linearLayoutsList.add(new Viewbean(guanjunivlin2, name1, guanjuntv2, "第一球", "9023695944"));
        linearLayoutsList.add(new Viewbean(guanjunivlin3, name2, guanjuntv3, "第一球", "9023695945"));
        linearLayoutsList.add(new Viewbean(guanjunivlin4, name3, guanjuntv4, "第一球", "9023695946"));
        linearLayoutsList.add(new Viewbean(guanjunivlin5, name4, guanjuntv5, "第一球", "9023695947"));
        linearLayoutsList.add(new Viewbean(guanjunivlin6, name5, guanjuntv6, "第一球", "9023695948"));
        linearLayoutsList.add(new Viewbean(guanjunivlin7, name6, guanjuntv7, "第一球", "9023695949"));
        linearLayoutsList.add(new Viewbean(guanjunivlin8, name7, guanjuntv8, "第一球", "9023695950"));
        linearLayoutsList.add(new Viewbean(guanjunivlin9, name8, guanjuntv9, "第一球", "9023695951"));
        linearLayoutsList.add(new Viewbean(guanjunivlin10, name9, guanjuntv10, "第一球", "9023695952"));

        yajuntv1.setText(listdata._$9023705957);
        yajuntv2.setText(listdata._$9023705958);
        yajuntv3.setText(listdata._$9023705959);
        yajuntv4.setText(listdata._$9023705960);
        yajuntv5.setText(listdata._$9023705961);
        yajuntv6.setText(listdata._$9023705962);
        yajuntv7.setText(listdata._$9023705963);
        yajuntv8.setText(listdata._$9023705964);
        yajuntv9.setText(listdata._$9023705965);
        yajuntv10.setText(listdata._$9023705966);
        linearLayoutsList.add(new Viewbean(yajunivlin1, name0, yajuntv1, "第二球", "9023705957"));
        linearLayoutsList.add(new Viewbean(yajunivlin2, name1, yajuntv2, "第二球", "9023705958"));
        linearLayoutsList.add(new Viewbean(yajunivlin3, name2, yajuntv3, "第二球", "9023705959"));
        linearLayoutsList.add(new Viewbean(yajunivlin4, name3, yajuntv4, "第二球", "9023705960"));
        linearLayoutsList.add(new Viewbean(yajunivlin5, name4, yajuntv5, "第二球", "9023705961"));
        linearLayoutsList.add(new Viewbean(yajunivlin6, name5, yajuntv6, "第二球", "9023705962"));
        linearLayoutsList.add(new Viewbean(yajunivlin7, name6, yajuntv7, "第二球", "9023705963"));
        linearLayoutsList.add(new Viewbean(yajunivlin8, name7, yajuntv8, "第二球", "9023705964"));
        linearLayoutsList.add(new Viewbean(yajunivlin9, name8, yajuntv9, "第二球", "9023705965"));
        linearLayoutsList.add(new Viewbean(yajunivlin10, name9, yajuntv10, "第二球", "9023705966"));

        disanmingtv1.setText(listdata._$9023715971);
        disanmingtv2.setText(listdata._$9023715972);
        disanmingtv3.setText(listdata._$9023715973);
        disanmingtv4.setText(listdata._$9023715974);
        disanmingtv5.setText(listdata._$9023715975);
        disanmingtv6.setText(listdata._$9023715976);
        disanmingtv7.setText(listdata._$9023715977);
        disanmingtv8.setText(listdata._$9023715978);
        disanmingtv9.setText(listdata._$9023715979);
        disanmingtv10.setText(listdata._$9023715980);
        linearLayoutsList.add(new Viewbean(disanmingivlin1, name0, disanmingtv1, "第三球", "9023715971"));
        linearLayoutsList.add(new Viewbean(disanmingivlin2, name1, disanmingtv2, "第三球", "9023715972"));
        linearLayoutsList.add(new Viewbean(disanmingivlin3, name2, disanmingtv3, "第三球", "9023715973"));
        linearLayoutsList.add(new Viewbean(disanmingivlin4, name3, disanmingtv4, "第三球", "9023715974"));
        linearLayoutsList.add(new Viewbean(disanmingivlin5, name4, disanmingtv5, "第三球", "9023715975"));
        linearLayoutsList.add(new Viewbean(disanmingivlin6, name5, disanmingtv6, "第三球", "9023715976"));
        linearLayoutsList.add(new Viewbean(disanmingivlin7, name6, disanmingtv7, "第三球", "9023715977"));
        linearLayoutsList.add(new Viewbean(disanmingivlin8, name7, disanmingtv8, "第三球", "9023715978"));
        linearLayoutsList.add(new Viewbean(disanmingivlin9, name8, disanmingtv9, "第三球", "9023715979"));
        linearLayoutsList.add(new Viewbean(disanmingivlin10, name9, disanmingtv10, "第三球", "9023715980"));

        disimingtv1.setText(listdata._$9023725985);
        disimingtv2.setText(listdata._$9023725986);
        disimingtv3.setText(listdata._$9023725987);
        disimingtv4.setText(listdata._$9023725988);
        disimingtv5.setText(listdata._$9023725989);
        disimingtv6.setText(listdata._$9023725990);
        disimingtv7.setText(listdata._$9023725991);
        disimingtv8.setText(listdata._$9023725992);
        disimingtv9.setText(listdata._$9023725993);
        disimingtv10.setText(listdata._$9023725994);
        linearLayoutsList.add(new Viewbean(disimingivlin1, name0, disimingtv1, "第四球", "9023725985"));
        linearLayoutsList.add(new Viewbean(disimingivlin2, name1, disimingtv2, "第四球", "9023725986"));
        linearLayoutsList.add(new Viewbean(disimingivlin3, name2, disimingtv3, "第四球", "9023725987"));
        linearLayoutsList.add(new Viewbean(disimingivlin4, name3, disimingtv4, "第四球", "9023725988"));
        linearLayoutsList.add(new Viewbean(disimingivlin5, name4, disimingtv5, "第四球", "9023725989"));
        linearLayoutsList.add(new Viewbean(disimingivlin6, name5, disimingtv6, "第四球", "9023725990"));
        linearLayoutsList.add(new Viewbean(disimingivlin7, name6, disimingtv7, "第四球", "9023725991"));
        linearLayoutsList.add(new Viewbean(disimingivlin8, name7, disimingtv8, "第四球", "9023725992"));
        linearLayoutsList.add(new Viewbean(disimingivlin9, name8, disimingtv9, "第四球", "9023725993"));
        linearLayoutsList.add(new Viewbean(disimingivlin10, name9, disimingtv10, "第四球", "9023725994"));

        diwumingtv1.setText(listdata._$9023735999);
        diwumingtv2.setText(listdata._$9023736000);
        diwumingtv3.setText(listdata._$9023736001);
        diwumingtv4.setText(listdata._$9023736002);
        diwumingtv5.setText(listdata._$9023736003);
        diwumingtv6.setText(listdata._$9023736004);
        diwumingtv7.setText(listdata._$9023736005);
        diwumingtv8.setText(listdata._$9023736006);
        diwumingtv9.setText(listdata._$9023736007);
        diwumingtv10.setText(listdata._$9023736008);
        linearLayoutsList.add(new Viewbean(diwumingivlin1, name0, diwumingtv1, "第五球", "9023735999"));
        linearLayoutsList.add(new Viewbean(diwumingivlin2, name1, diwumingtv2, "第五球", "9023736000"));
        linearLayoutsList.add(new Viewbean(diwumingivlin3, name2, diwumingtv3, "第五球", "9023736001"));
        linearLayoutsList.add(new Viewbean(diwumingivlin4, name3, diwumingtv4, "第五球", "9023736002"));
        linearLayoutsList.add(new Viewbean(diwumingivlin5, name4, diwumingtv5, "第五球", "9023736003"));
        linearLayoutsList.add(new Viewbean(diwumingivlin6, name5, diwumingtv6, "第五球", "9023736004"));
        linearLayoutsList.add(new Viewbean(diwumingivlin7, name6, diwumingtv7, "第五球", "9023736005"));
        linearLayoutsList.add(new Viewbean(diwumingivlin8, name7, diwumingtv8, "第五球", "9023736006"));
        linearLayoutsList.add(new Viewbean(diwumingivlin9, name8, diwumingtv9, "第五球", "9023736007"));
        linearLayoutsList.add(new Viewbean(diwumingivlin10, name9, diwumingtv10, "第五球", "9023736008"));

        qiansanBaozis.setText(listdata._$9023746013);
        qiansanShunzis.setText(listdata._$9023746014);
        qiansanDuizis.setText(listdata._$9023746015);
        qiansanBanshuns.setText(listdata._$9023746016);
        qiansanZalius.setText(listdata._$9023746017);
        linearLayoutsList.add(new Viewbean(qiansanBaozilin, qiansanBaozi, qiansanBaozis, "前三", "9023746013"));
        linearLayoutsList.add(new Viewbean(qiansanShunzilin, qiansanShunzi, qiansanShunzis, "前三", "9023746014"));
        linearLayoutsList.add(new Viewbean(qiansanDuizilin, qiansanDuizi, qiansanDuizis, "前三", "9023746015"));
        linearLayoutsList.add(new Viewbean(qiansanbanshunlin, qiansanBanshun, qiansanBanshuns, "前三", "9023746016"));
        linearLayoutsList.add(new Viewbean(qiansanZaliulin, qiansanZaliu, qiansanZalius, "前三", "9023746017"));

        zhongsanBaozis.setText(listdata._$9023756018);
        zhongsanShunzis.setText(listdata._$9023756019);
        zhongsanDuizis.setText(listdata._$9023756020);
        zhongsanBanshuns.setText(listdata._$9023756021);
        zhongsanZalius.setText(listdata._$9023756022);
        linearLayoutsList.add(new Viewbean(zhongsanbaozilin, zhongsanBaozi, zhongsanBaozis, "中三", "9023756018"));
        linearLayoutsList.add(new Viewbean(zhongsanshunzilin, zhongsanShunzi, zhongsanShunzis, "中三", "9023756019"));
        linearLayoutsList.add(new Viewbean(zhongsanduizilin, zhongsanDuizi, zhongsanDuizis, "中三", "9023756020"));
        linearLayoutsList.add(new Viewbean(zhongsanbanshunlin, zhongsanBanshun, zhongsanBanshuns, "中三", "9023756021"));
        linearLayoutsList.add(new Viewbean(zhongsanZaliulin, zhongsanZaliu, zhongsanZalius, "中三", "9023756022"));

        housanBaozis.setText(listdata._$9023766023);
        housanShunzis.setText(listdata._$9023766024);
        housanDuizis.setText(listdata._$9023766025);
        housanBanshuns.setText(listdata._$9023766026);
        housanZalius.setText(listdata._$9023766027);
        linearLayoutsList.add(new Viewbean(housanbaozilin, housanBaozi, housanBaozis, "后三", "9023766023"));
        linearLayoutsList.add(new Viewbean(housanshunzi, housanShunzi, housanShunzis, "后三", "9023766024"));
        linearLayoutsList.add(new Viewbean(housanduizilin, housanDuizi, housanDuizis, "后三", "9023766025"));
        linearLayoutsList.add(new Viewbean(housanbanshunlin, housanBanshun, housanBanshuns, "后三", "9023766026"));
        linearLayoutsList.add(new Viewbean(housanZaliulin, housanZaliu, housanZalius, "后三", "9023766027"));

        textcolorlist();

    }

    /////////////////////////////////////////////////////////////////////////////
    class Adapter extends RecyclerView.Adapter<Adapter.MViewHolder>
            implements OnItemClickListener {
        @Override
        public MViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
            return new MViewHolder(LayoutInflater.from(getContext())
                    .inflate(R.layout.game_popitem, parent, false));

        }

        @Override
        public void onBindViewHolder(final MViewHolder holder, final int position) {
            holder.geme_tv.setText("【" + betBean_title1[position] + "-" + betBean_text1[position] + "】");
            holder.geme_tv1.setText("@" + betBean_odds1[position] + "×" + betBean_money1[position]);

            if (position + 1 == thecrownIndex.size()) {
                holder.game_pop_botton.setVisibility(View.VISIBLE);
                holder.game_pop_bottonlin.setVisibility(View.VISIBLE);
                holder.leftmoney.setText(position + 1 + "");
                holder.rightmoney.setText((position + 1) * Long.parseLong(betBean_money1[0]) + "");
            }else{
                holder.game_pop_botton.setVisibility(View.GONE);
                holder.game_pop_bottonlin.setVisibility(View.GONE);
            }
        }

        @Override
        public int getItemCount() {
            return thecrownIndex.size();
        }

        @Override
        public void onItemClick(View view, int position) {

        }

        class MViewHolder extends RecyclerView.ViewHolder {
            TextView geme_tv, leftmoney, rightmoney;
            TextView geme_tv1;
            View game_pop_bottonlin;
            LinearLayout game_pop_botton;

            MViewHolder(View itemView) {
                super(itemView);
                geme_tv = (TextView) itemView.findViewById(R.id.gamepoptext);
                geme_tv1 = (TextView) itemView.findViewById(R.id.gamepoptext1);
                leftmoney = (TextView) itemView.findViewById(R.id.leftmoney);
                rightmoney = (TextView) itemView.findViewById(R.id.rightmoney);
                game_pop_bottonlin = (View) itemView.findViewById(R.id.game_pop_bottonlin);
                game_pop_botton = (LinearLayout) itemView.findViewById(R.id.game_pop_botton);

            }
        }
    }


    CountDownTimer timer1;
    CountDownTimer timer2;

    //封盘倒计时
    public void startleftTime(final String startTime, final String nowTime) {
        String mStartTile = startTime;
        String mNowTile = nowTime;
        Date startDate = DateUtils.strToDateLong(mStartTile);
        Date nowDate = DateUtils.strToDateLong(mNowTile);
        final long diff1 = startDate.getTime() - nowDate.getTime() + 500;
        if (diff1 - 500 > 0) {
            timer1 = new CountDownTimer(diff1, 1000) {
                @Override
                public void onTick(long millisUntilFinished) {
                    xiazhubt.setEnabled(true);
                    chongzhibt.setEnabled(true);
                    touzhued.setEnabled(true);
                    fengpanlin.setVisibility(View.GONE);
                    closeTimeTv.setText(TimeTools.getCountTimeByLong(millisUntilFinished));
                }

                @Override
                public void onFinish() {
                    if (timer1 != null) {
                        timer1.cancel();
                    }
                    closeTimeTv.setText(String.valueOf("已封盘"));
                    fengpanlin.setVisibility(View.VISIBLE);
                    keybord.setVisibility(View.GONE);
                    xiazhubt.setEnabled(false);
                    chongzhibt.setEnabled(false);
                    touzhued.setEnabled(false);
                }
            };
            timer1.start();
        }
    }


    public void startrightTime(final String startTime, final String nowTime, final int a) {
        String mStartTile = startTime;
        String mNowTile = nowTime;
        Date startDate = DateUtils.strToDateLong(mStartTile);
        Date nowDate = DateUtils.strToDateLong(mNowTile);
        final long diff = startDate.getTime() - nowDate.getTime() + 500;
        if (diff - 500 > 0) {
            timer2 = new CountDownTimer(diff, 1000) {
                @Override
                public void onTick(long millisUntilFinished) {
                    openTimeTv.setText(TimeTools.getCountTimeByLong(millisUntilFinished));
                    if (TimeTools.getCountTimeByLong(millisUntilFinished).equals("00:00:00")) {
                        openTimeTv.setText("开奖中");
                    }
                }

                @Override
                public void onFinish() {
                    if (timer2 != null) {
                        timer2.cancel();
                    }
                    openTimeTv.setText("开奖中");
                    SystemClock.sleep(2000);//休眠2秒，保证可以获取到最新的开奖数据
                    mPresenter.getgamesdetail(gameid);
                    //接着请求钱的接口
                }
            };
            timer2.start();
        }
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        if (timer1 != null) {
            timer1.cancel();
            timer1 = null;
        }
        if (timer2 != null) {
            timer2.cancel();
            timer2 = null;
        }

    }
}

